Odmontowywanie initrd
Kacper Kornet
kornet at camk.edu.pl
Fri Aug 11 18:13:54 CEST 2006
Witam,
Obecne rc-scripts nie odmontowują skutecznie /initrd. Powodem jest, że najpierw
trzeba jeszcze odmontować /initrd/dev. rc.sysinit co prawda próbuje to
zrobić, ale tylko jeżeli ktoś używa devfsd, a nie np. udev. U siebie to
poprawiłem według załączonej łatki.
Przy okazji, czy rc-scripts nie powinno wymagać blockdev, skoro
rc.sysinit wywołuje go?
Pozdrawiam,
--
Kacper Kornet
-------------- next part --------------
--- rc.sysinit.old 2006-08-11 15:49:43.000000000 +0200
+++ rc.sysinit 2006-08-11 15:51:53.000000000 +0200
@@ -354,7 +354,7 @@
# Unmount the initrd, if necessary
if LC_ALL=C grep -q /initrd /proc/mounts 2>/dev/null && ! LC_ALL=C grep -q /initrd/loopfs /proc/mounts 2>/dev/null ; then
- if [ -e /initrd/dev/.devfsd ]; then
+ if LC_ALL=C grep -q /initrd/dev /proc/mounts 2>/dev/null ; then
umount /initrd/dev
fi
umount /initrd
More information about the pld-devel-pl
mailing list