[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] Suggestion: make knoppix-autoconfig fully configurable via files



> Hi,
>
> /etc/init.d/knoppix-autoconfig seems to be _almost_ but not completely
> suitable for driving a HD-installed OS, that is, by only changing
> configuration files (I think the configuration "by kernel command
> line" is not really suitable for HD-installation/custom kernels).

Yes, it is _almost_ ..

My idea, that is in the upcoming knoppix-installer-0.3 is to use CMDLINE
from environment, if its set ...


>
> I'm not sure whether this is intentional -- if this file is replaced
> during any sort of "recommended" HD-install of Knoppix, please tell me
> with what file(s)..
>
> With the appended patch, for a HD-install all one has to do is copy
> /KNOPPIX to the target root, create /etc/fstab and then append a few
> lines to /etc/default/rcS, like:
>
> # for knoppix-autoconfig
> BOOT_utc=yes
> BOOT_nodhcp=yes

Hm, I see why you do it, but I have a better solution ...

> BOOT_nomkxf86config=yes
Not, needed. Just saves time, but its sooo less time, so its not worth ...

And you can easily create a new XF86Config-4 if you rename the old one and
reboot ... :-))

> BOOT_norebuildfstab=yes

/etc/default/rcS is a bad idea ...

I use /etc/default/knoppix

>
> Regards,
> Wolfram.
>
> --- knoppix-autoconfig.orig    Mon Jan  5 07:09:50 2004
> +++ knoppix-autoconfig    Tue Feb 17 15:40:18 2004
> @@ -11,6 +12,9 @@
>  # Ignore these signals: INT, TERM, SEGV
>  trap "" 2 3 11
>  
> +# load boot parameters from disk
> +. /etc/default/rcS
> +
>  # ANSI COLORS
>  CRE="
> "
>  NORMAL=""
> @@ -54,6 +58,8 @@
>  
>  # Check boot commandline for specified option
>  checkbootparam(){
> +boot_par_="BOOT_$1"
> +[ x${!boot_par_} = xyes ] && return 0
>  stringinstring " $1" "$CMDLINE"
>  return "$?"
>  }
> @@ -411,7 +417,7 @@
>  [ -e /KNOPPIX/bin/ash ] || INSTALLED="yes"
>  
>  # Set hostname
> -hostname Knoppix
> +hostname "$(cat /etc/hostname)"


Hm, this one _could_ be done ...

>  
>  # Set clock (Local time is more often used than GMT, so it is default)
>  UTC=""
> @@ -447,7 +453,10 @@
>  
>  KTZ="$(getbootparam tz 2>/dev/null)"
>  [ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
> -cp "/usr/share/zoneinfo/$TZ" /etc/localtime
> +if ! cmp "/usr/share/zoneinfo/$TZ" /etc/localtime; then
> +  rm -f /etc/localtime
> +  ln -s "/usr/share/zoneinfo/$TZ" /etc/localtime
> +fi

Is this needed ?

>  
>  # Delete obsolete links and files before starting autoconfig
>  if ! checkbootparam "nohwsetup"; then
> @@ -794,6 +803,7 @@
>  #done
>  #fi
>  
> +if ! checkbootparam norebuildfstab; then
>  # Start creating /etc/fstab with HD partitions and USB SCSI devices now
>  echo -n "${BLUE}Scanning for Harddisk partitions and creating
> ${YELLOW}/etc/fstab${BLUE}... "
>  rebuildfstab -r -u knoppix -g knoppix >/dev/null 2>&1
> @@ -802,6 +812,7 @@
>  sleep 8
>  fi
>  echo "${GREEN}Done.${NORMAL}"
> +fi

Thats general a good idea, but why do you want it ?
fstab creation does not cost much time ...

Please wait for knoppix-installer 0.3 it will have everything you mentioned
in new "beginner" mode and also much more ...

cu

Fabian

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: