X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=f8af3dbe095626c716961d3b1ae23993f81cf6d0;hp=7a8e3978e625bae8582f991b1dc931d3256e8d8e;hb=1ea16e67f6d5df1a78248970153495b5f31ca9a9;hpb=57e96c0964d9fe139827c117570162bc395da66a diff --git a/autoconfig.functions b/autoconfig.functions index 7a8e397..f8af3db 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -937,9 +937,13 @@ fi # {{{ Start creating /etc/fstab with HD partitions and USB SCSI devices now config_fstab(){ + NOSWAP="" -checkbootparam "noswap" && NOSWAP="yes" -if checkbootparam "nofstab"; then +if checkbootparam "noswap" -o checkbootparam "forensic" ; then + NOSWAP="yes" +fi + +if checkbootparam "nofstab" -o checkbootparam "forensic" ; then ewarn "Skipping /etc/fstab creation as requested on boot commandline." ; eend 0 else checkbootparam "anyswap" && export ANYSWAP='yes' || export ANYSWAP="" @@ -1708,7 +1712,7 @@ fi } config_automount(){ -if checkbootparam noautoconfig ; then +if checkbootparam noautoconfig -o checkbootparam forensic ; then ewarn "Skipping running automount of device(s) labeled GRMLCFG as requested." ; eend 0 else if [ -z "$INSTALLED" ] ; then @@ -1989,14 +1993,15 @@ fi # {{{ SW-RAID config_swraid(){ if [ -z "$INSTALLED" ] ; then - if checkbootparam "noraid" -o checkbootparam "forensic" ; then + # notice: checkbootparam "forensic" is just for users who don't know how to really use the bootoption + if checkbootparam "noraid" -o checkbootparam "forensic" -o checkbootparam "raid=noautodetect" ; then ewarn "Skipping search for SW-RAID as requested on boot commandline." ; eend 0 else if ! [ -x /sbin/mdadm ] ; then eerror "mdadm not available, can not execute it." ; eend 1 else - einfo "Searching for software RAID arrays:" + einfo "Searching for software RAID arrays (disable via bootoption noraid):" eindent IFSOLD=${IFS:-} IFS='