Package: util-linux
Version: 2.13.1~rc2-1
Severity: important
Tags: patch
User: [EMAIL PROTECTED]
Usertags: incorrect-dependency
With the new init.d/hwclockfirst.sh script with more correct
dependencies in place, a new bug was exposed. There is a fake
dependency loop when the three packages util-linux, lvm2 and
cryptsetup is installed. After looking at the involved init.d
scripts, I believe the best way to break this loop is to allow
hwclockfirst.sh to run even later in the shutdown sequence.
As far as I can see, there is nothing in the hwclockfirst.sh script
requiring /usr/. It seem to only require a readable /, and thus it
can run after umountfs and as late as just before umountroot. Making
this change will break the loop involving lvm2 and cryptsetup.
Here is a patch to implement this change.
diff -ur util-linux-2.13.1~rc2/debian/rules
util-linux-2.13.1~rc2.pere/debian/rules
--- util-linux-2.13.1~rc2/debian/rules 2008-01-08 15:49:05.000000000 +0100
+++ util-linux-2.13.1~rc2.pere/debian/rules 2008-01-08 15:48:09.000000000
+0100
@@ -106,7 +106,7 @@
install -m 755 debian/hwclock.sh
debian/util-linux/etc/init.d/hwclock.sh; \
install -m 755 debian/hwclock.sh
debian/util-linux/etc/init.d/hwclockfirst.sh; \
sed -i -e '/^FIRST=/s/no/yes/' -e '/Provides:/s/ck/ckfirst/' \
- -e '/Required-Stop/s/.local_fs/umountfs/'
debian/util-linux/etc/init.d/hwclockfirst.sh; \
+ -e '/Required-Stop/s/.local_fs/umountroot/'
debian/util-linux/etc/init.d/hwclockfirst.sh; \
fi
ifneq ($(DISTRO),Debian)
if [ -f debian/util-linux/sbin/hwclock ] ; then \
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]