New commits:
commit ee8210cf548ea68c1b531ac02ed1ec96c007b9ad
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
initrd/sbin/smgl.init: kill udev better
Improved the method in which udevd gets killed before handing off to the
ISO init. It now happens more properly, and has a failsafe in case there
is a problem.
commit 0aaeee2adc22eda6f94b6c82af958e5fbd1703a7
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>
smgl.install/bashrc: properly restrict grep
Restricted the grep in num_current to anchor on BOL, or it would find
false positives.
diff --git a/initrd/sbin/smgl.init b/initrd/sbin/smgl.init
index d213658..4c581ad 100755
--- a/initrd/sbin/smgl.init
+++ b/initrd/sbin/smgl.init
@@ -111,13 +111,27 @@ main() {
continue
fi
- umount -n /dev
+
+ UDEVPID="$(pidof udevd)"
+ if [[ -n $UDEVPID ]]
+ then
+ echo "Killing initrd udev ..."
+ if ! kill $UDEVPID
+ then
+ echo "Error killing udevd!"
+ echo -n "[a]bort or [c]ontinue? [ac]"
+ read choice
+ if [[ $choice == "a" ]]
+ then
+ shell
+ fi
+ fi
+ fi
+
umount -n /sys
+ umount -n /dev
umount -n /proc