init: create symlinks /var/run -> /run, /var/lock -> /run/lock
After switching to these symlinks, you no longer need to create the missing directories. See-also: https://bugzilla.altlinux.org/show_bug.cgi?id=35350
This commit is contained in:
parent
17671b1d50
commit
40bbaff960
9
features.in/init/live/image-scripts.d/50-var-run-fix
Executable file
9
features.in/init/live/image-scripts.d/50-var-run-fix
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# this was a bunch of dirty complaints
|
||||
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
|
||||
|
||||
[ ! -L /var/run ] && rm -r /var/run && ln -s ../run /var/run
|
||||
[ ! -L /var/lock ] && rm -r /var/lock && ln -s ../run/lock /var/lock
|
||||
|
||||
:
|
@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# the part below relates to sysvinit specifically
|
||||
rpm -q sysvinit || exit 0
|
||||
|
||||
# this was a bunch of dirty complaints
|
||||
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
|
||||
|
||||
# https://bugzilla.altlinux.org/35350
|
||||
# this FAILS: no symlinks...
|
||||
#rm -rf /var/run /var/lock
|
||||
# ...so just revert what's been broken in failsystem package
|
||||
mkdir -p /var/run /var/lock/{serial,subsys,uucp}
|
||||
chmod 0770 /var/lock/subsys
|
||||
chmod 0770 /var/lock/{serial,uucp}
|
||||
chgrp uucp /var/lock/{serial,uucp}
|
9
features.in/init/rescue/image-scripts.d/50-var-run-fix
Executable file
9
features.in/init/rescue/image-scripts.d/50-var-run-fix
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# this was a bunch of dirty complaints
|
||||
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
|
||||
|
||||
[ ! -L /var/run ] && rm -r /var/run && ln -s ../run /var/run
|
||||
[ ! -L /var/lock ] && rm -r /var/lock && ln -s ../run/lock /var/lock
|
||||
|
||||
:
|
@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
# 40: should run before 50-users in deflogin
|
||||
|
||||
# the part below relates to sysvinit specifically
|
||||
rpm -q sysvinit || exit 0
|
||||
|
||||
# NM-specific group
|
||||
case "$GLOBAL_GROUPS" in
|
||||
*_nmconnect*) groupadd -r _nmconnect ||:;;
|
||||
esac
|
||||
|
||||
# this was a bunch of dirty complaints
|
||||
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
|
||||
|
||||
# https://bugzilla.altlinux.org/35350
|
||||
# this FAILS: no symlinks...
|
||||
#rm -rf /var/run /var/lock
|
||||
# ...so just revert what's been broken in failsystem package
|
||||
mkdir -p /var/run /var/lock/{serial,subsys,uucp}
|
||||
chmod 0770 /var/lock/subsys
|
||||
chmod 0770 /var/lock/{serial,uucp}
|
||||
chgrp uucp /var/lock/{serial,uucp}
|
9
features.in/init/rootfs/image-scripts.d/50-var-run-fix
Executable file
9
features.in/init/rootfs/image-scripts.d/50-var-run-fix
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# this was a bunch of dirty complaints
|
||||
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
|
||||
|
||||
[ ! -L /var/run ] && rm -r /var/run && ln -s ../run /var/run
|
||||
[ ! -L /var/lock ] && rm -r /var/lock && ln -s ../run/lock /var/lock
|
||||
|
||||
:
|
Loading…
x
Reference in New Issue
Block a user