From e855fb62a06c946dbb8e81b68a9387dd8e226249 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 7 Jul 2011 00:43:36 +0200 Subject: [PATCH] Drop disabled config_automounter(). This code is ugly and untested since ages. If we really want to support something like that we've to re-implement this from scratch to play together with our existing fstab solution. So let's drop this code. --- autoconfig | 1 - autoconfig.functions | 53 ---------------------------------------------------- grml-autoconfig | 2 -- 3 files changed, 56 deletions(-) diff --git a/autoconfig b/autoconfig index 11c8bc5..3a01933 100644 --- a/autoconfig +++ b/autoconfig @@ -49,7 +49,6 @@ CONFIG_GPM='yes' # what you are doing! CONFIG_915RESOLUTION='yes' # run 915resolution with specified options for adjusting resolution CONFIG_AGP='yes' # check for bootparam forceagp -CONFIG_AUTOMOUNTER='no' # activate automounter CONFIG_AUTOMOUNT='yes' # automounting of device labeled GRMLCFG CONFIG_BLANKING='yes' # check for bootoption noblank to disable console blanking CONFIG_BLINDSOUND='yes' # play 'beep' and play welcome message diff --git a/autoconfig.functions b/autoconfig.functions index a8eed74..30f476c 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -896,59 +896,6 @@ fi } # }}} -# {{{ automount(er) -config_automounter(){ -if checkbootparam 'automounter' ; then - RUNLEVEL="$(runlevel)" - AUTOMOUNTER="" - [ -x /etc/init.d/autofs ] && [ "$RUNLEVEL" != "N 1" ] && [ "$RUNLEVEL" != "N S" ] && AUTOMOUNTER="yes" - -addautomount(){ -# /dev/ice options - d="${1##*/}" - if [ -n "$AUTOMOUNTER" ]; then - [ -d "/mnt/$d" -a ! -L "/mnt/$d" ] && rmdir /mnt/$d - [ -d "/mnt/auto/$d" ] || mkdir -p "/mnt/auto/$d" - [ -L "/mnt/$d" ] || ln -s "/mnt/auto/$d" "/mnt/$d" - anew="$d -fstype=auto,$2 :$i" - grep -q "$anew" "/etc/auto.mnt" || echo "$anew" >> /etc/auto.mnt - AUTOMOUNTS="$AUTOMOUNTS $d" - new="$1 /mnt/auto/$d auto users,noauto,exec,$2 0 0" - else - [ -d /mnt/$d ] && mkdir -p /mnt/$d - new="$1 /mnt/$d auto users,noauto,exec,$2 0 0" - fi - grep -q "$new" "/etc/fstab" || echo "$new" >> /etc/fstab -} - - AUTOMOUNTS="floppy cdrom" -# Add new devices to /etc/fstab and /etc/auto.mnt - for i in /dev/cdrom?*; do - if [ -L $i ]; then - addautomount "$i" "ro" - fi - done -fi - -if [ -n "$AUTOMOUNTER" ]; then -# Check for floppy dir, reinstall with automounter - [ -d /mnt/floppy -a ! -L /mnt/floppy ] && rmdir /mnt/floppy - [ -d /mnt/auto/floppy ] || mkdir -p /mnt/auto/floppy - [ -L /mnt/floppy ] || ln -s /mnt/auto/floppy /mnt/floppy - [ -d /mnt/cdrom -a ! -L /mnt/cdrom ] && rmdir /mnt/cdrom - [ -d /mnt/auto/cdrom ] || mkdir -p /mnt/auto/cdrom - [ -L /mnt/cdrom ] || ln -s /mnt/auto/cdrom /mnt/cdrom - rm -f /etc/fstab.new -# Replace paths from bootfloppy - sed 's|/mnt/cdrom|/mnt/auto/cdrom|g;s|/mnt/floppy|/mnt/auto/floppy|g' /etc/fstab > /etc/fstab.new - mv -f /etc/fstab.new /etc/fstab -# Start automounter now - einfo "Starting automounter for ${AUTOMOUNTS}." - /etc/init.d/autofs start >>$DEBUG ; eend $? -fi -} -# }}} - # {{{ Collect partitions from /proc/partitions first for enabling DMA check_partitions(){ partitions="" diff --git a/grml-autoconfig b/grml-autoconfig index 79af3db..0952394 100755 --- a/grml-autoconfig +++ b/grml-autoconfig @@ -154,8 +154,6 @@ checkvalue $CONFIG_BLIND && config_blind checkvalue $CONFIG_AGP && config_agp -checkvalue $CONFIG_AUTOMOUNTER && config_automounter - checkvalue $CONFIG_DMA && config_dma checkvalue $CONFIG_FSTAB && config_fstab -- 2.1.4