X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=scripts%2Frc.sysinit;h=ebfe17c286da40ee5474ca5e3da30c93c0cc15a4;hb=HEAD;hp=8f030c7edc19697c91a46d29ee2888954b7022ca;hpb=a3fb8f7fdef8cf61b194fd8b44b5c9c39923ffed;p=startuptools diff --git a/scripts/rc.sysinit b/scripts/rc.sysinit index 8f030c7..ebfe17c 100644 --- a/scripts/rc.sysinit +++ b/scripts/rc.sysinit @@ -81,8 +81,11 @@ status_check # this covers the case where there isn't one, but we still want # to load more hardware if ! is_true "$NOPROBEHW" ; then - status_begin "looking for kernel modules to load" - lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u | xargs -n1 modprobe + status_begin "loading kernel modules" + modlist=$(lspci -k|grep 'Kernel modules:' | awk '{print $3}'| sort -u) + if [ -n "$modlist" ]; then + modprobe $modlist + fi status_check fi @@ -144,9 +147,9 @@ status_begin mounting remaining filesystems mount -a -t noproc,sysfs,devtmpfs,devpts,tmpfs status_check +# force mtab symlink rm -f /etc/mtab -mount -af -mount -f / +ln -s /proc/mounts /etc/mtab # * do any boot time /tmp cleanup or similar