From f8390e12d992e5542417e188f3459488651efaa9 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 9 Mar 2010 17:55:08 +0100 Subject: Changing distro-specific stuff to change default to Ubuntu 10.04 ... --- initramfs/distro-specs/ubuntu/functions-default | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'initramfs/distro-specs/ubuntu/functions-default') diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default index d3d55fec..ccc02288 100644 --- a/initramfs/distro-specs/ubuntu/functions-default +++ b/initramfs/distro-specs/ubuntu/functions-default @@ -21,7 +21,10 @@ # D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on # TempFS usage # D_DIRINDXS - directories in client filesystem which should be present anyhow - +D_BINDMPTS="tmp root home media" +D_DIRINBINDMNT="/var/run /var/log /var/tmp /var/lib/gdm" +D_RODIRSINRW="/etc/X11/xkb /var/lib/gconf /var/lib/dpkg /var/lib/aspell \ +/var/lib/pango /var/lib/defoma /var/cache/fontconfig /var/lib/dkms" D_DIRINDXS="/var/run/sysconfig/tmp /var/lib/nobody /var/lib/misc /var/lib/pam \ /var/lib/bluetooth /var/lib/texmf /var/lib/nfs/sm /var/lib/acpi_support \ /var/spool/cron /var/lib/alsa" @@ -35,7 +38,9 @@ config_distro () { done # remove unneeded init scripts (stuff handled in stage3 which would # interface with already existing setup) - rm bridge-network-interface.conf hostname.conf network*conf >/dev/null 2>&1 + for file in bridge-network-interface.conf hostname.conf network*conf ; + do rm /mnt/init/${file} >/dev/null 2>&1 + done # add the halt link to the 0 and 6 runlevel directories and other useful # links @@ -62,6 +67,14 @@ initial_boot () { : } +# set up localization like keytable, console +dlocale () { +# fixme -- use keytable setup script here +# echo -e "\t# entries added by $0: $date" >> /mnt/etc/init.d/boot.slx +sed -e "1i# File modified during SLX stage3 bootup (config_distro)" \ + -e "s/LANG.*/LANG=\"${LANG}\"/" -i /mnt/etc/default/locale +} + # function for ntp configuration config_ntp () { if [ -f /mnt/etc/init.d/ntp -a "x$start_ntp" != "xno" ] ; then -- cgit v1.2.3-55-g7522