X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=grml-autoconfig;h=963c1bf7a09129c966c490e5a43c39432719cad1;hp=efe0061b59082739936448849064803e88d441f8;hb=78d1364df253e1e553689737c2d52a8708fc2ebe;hpb=37eee4a042ff38046cb7594420a03af5067efa8d diff --git a/grml-autoconfig b/grml-autoconfig index efe0061..963c1bf 100755 --- a/grml-autoconfig +++ b/grml-autoconfig @@ -9,8 +9,8 @@ # http://wiki.debian.org/LSBInitScripts => ### BEGIN INIT INFO # Provides: grml-autoconfig -# Required-Start: -# Required-Stop: +# Required-Start: $remote_fs +# Required-Stop: $remote_fs # Should-Start: udev # Default-Start: S 2 3 4 5 # Default-Stop: @@ -53,16 +53,11 @@ mount_pts mount_sys # }}} -# {{{ Read in boot parameters -CMDLINE="$(cat /proc/cmdline)" -[ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/* | tr '\n' ' ')" -# }}} - # {{{ main grml-autoconfig checkvalue $CONFIG_DEBUG && config_debug SPLASH='' -if checkbootparam "textsplash" || checkbootparam "tsplash"; then +if checkbootparam 'textsplash' || checkbootparam 'tsplash'; then SPLASH=1 fi @@ -90,13 +85,9 @@ fi checkvalue $CONFIG_SYSLOG && config_syslog -if checkbootparam "forensic" ; then - eerror "Bootopion forensic found. Important notice!" - eerror " Do *not* boot with something like 'grml forensic ...' but with 'forensic ...' instead!" - eerror " To avoid damage to your system a debugshell will be started after a delay of 10 seconds." ; eend 1 - eerror " If you want to continue booting just exit the shell, but think about what you are doing!" ; eend 1 - sleep 10 - rundebugshell +if checkbootparam 'forensic' ; then + ewarn "Bootopion forensic found. Important notice:" ; eend 0 + ewarn " Do *NOT* boot with something like 'grml forensic ...' but always use 'forensic ...' instead!" ; eend 0 fi if [ -n "$SPLASH" ] ; then @@ -126,10 +117,6 @@ checkvalue $CONFIG_TIME && config_time checkvalue $CONFIG_KERNEL && config_kernel -checkvalue $CONFIG_VMWARE && config_vmware - -checkvalue $CONFIG_QEMU && config_qemu - checkvalue $CONFIG_SMALL && config_small checkvalue $CONFIG_LD_MOD && config_ld_mod @@ -144,6 +131,8 @@ checkvalue $CONFIG_ENVIRONMENT && config_environment checkvalue $CONFIG_SWRAID && config_swraid +checkvalue $CONFIG_DMRAID && config_dmraid + checkvalue $CONFIG_LVM && config_lvm # No kernel messages while probing modules @@ -203,21 +192,25 @@ checkvalue $CONFIG_CPU && config_cpu checkvalue $CONFIG_SSH && config_ssh +checkvalue $CONFIG_VNC && config_vnc + checkvalue $CONFIG_PASSWD && config_passwd checkvalue $CONFIG_EXTRACT && config_extract checkvalue $CONFIG_HOMEDIR && config_homedir -checkvalue $CONFIG_MYCONFIG && config_myconfig +checkvalue $CONFIG_FINDDCSDIR && config_finddcsdir checkvalue $CONFIG_DEBS && config_debs +checkvalue $CONFIG_CONFIG && config_config + checkvalue $CONFIG_SCRIPTS && config_scripts -[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||||">/dev/tty14 +checkvalue $CONFIG_PARTCONF && config_partconf -checkvalue $CONFIG_CDROM_SCRIPTS && config_cdrom_scripts +[ -n "$SPLASH" ] && /usr/bin/grml-bootsplash "||||||||">/dev/tty14 # device symlinks {{{ [ -r /mnt/floppy ] || mkdir /mnt/floppy @@ -239,6 +232,8 @@ checkvalue $CONFIG_SERVICES && config_services checkvalue $CONFIG_NETCONFIG && config_netconfig +checkvalue $CONFIG_NETSCRIPT && config_netscript + checkvalue $CONFIG_NETIPV6 && config_ipv6 checkvalue $CONFIG_DEBNET && config_debnet @@ -259,10 +254,6 @@ checkvalue $CONFIG_CREATE_MNT_DIRS && create_mnt_dirs checkvalue $CONFIG_915RESOLUTION && config_915resolution -checkvalue $CONFIG_IPW3945 && config_ipw3945 - -checkvalue $CONFIG_AUTOMOUNT && config_automount - checkvalue $CONFIG_MYPATH && config_mypath checkvalue $CONFIG_DISTCC && config_distcc @@ -292,8 +283,12 @@ if [ -z "$SPLASH" ] ; then fi if [ -n "$BOOTDEBUG" ] ; then - CMDLINE="$(cat /proc/cmdline)" - [ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/*)" + # set only if not already set + if [ -z "$CMDLINE" ] ; then + CMDLINE="$(cat /proc/cmdline)" + [ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/*)" + [ -d /live/image/bootparams/ ] && CMDLINE="$CMDLINE $(cat /live/image/bootparams/*)" + fi einfo "Bootoption debug detected. Printing kernel command line:" echo "$CMDLINE" fi