View | Details | Raw Unified | Return to bug 35350
Collapse All | Expand All

(-)a/features.in/init/rescue/image-scripts.d/50-sysvinit (-16 lines)
Lines 1-16 Link Here
1
#!/bin/sh
2
3
# the part below relates to sysvinit specifically
4
rpm -q sysvinit || exit 0
5
6
# this was a bunch of dirty complaints
7
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
8
9
# https://bugzilla.altlinux.org/35350
10
# this FAILS: no symlinks...
11
#rm -rf /var/run /var/lock
12
# ...so just revert what's been broken in failsystem package
13
mkdir -p /var/run /var/lock/{serial,subsys,uucp}
14
chmod 0770 /var/lock/subsys
15
chmod 0770 /var/lock/{serial,uucp}
16
chgrp uucp /var/lock/{serial,uucp}
(-)a/features.in/init/rootfs/image-scripts.d/50-sysvinit (-12 lines)
Lines 8-22 rpm -q sysvinit || exit 0 Link Here
8
case "$GLOBAL_GROUPS" in
8
case "$GLOBAL_GROUPS" in
9
	*_nmconnect*) groupadd -r _nmconnect ||:;;
9
	*_nmconnect*) groupadd -r _nmconnect ||:;;
10
esac
10
esac
11
12
# this was a bunch of dirty complaints
13
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:
14
15
# https://bugzilla.altlinux.org/35350
16
# this FAILS: no symlinks...
17
#rm -rf /var/run /var/lock
18
# ...so just revert what's been broken in failsystem package
19
mkdir -p /var/run /var/lock/{serial,subsys,uucp}
20
chmod 0770 /var/lock/subsys
21
chmod 0770 /var/lock/{serial,uucp}
22
chgrp uucp /var/lock/{serial,uucp}
(-)a/sub.in/stage2/image-scripts.d/99-migrate-to-symlink (-1 / +10 lines)
Line 0 Link Here
0
- 
1
#!/bin/sh
2
3
cp -a /var/run/* /run/
4
cp -a /var/lock/ /run/
5
rm -fr /var/{run,lock}
6
ln -s ../run /var/run
7
ln -s ../run/lock /var/lock
8
9
# this was a bunch of dirty complaints
10
sed -i 's,/var/run,/run,' /{etc,lib}/tmpfiles.d/*.conf ||:

Return to bug 35350