summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
authorDirk von Suchodoletz2010-03-09 17:55:08 +0100
committerDirk von Suchodoletz2010-03-09 17:55:08 +0100
commitf8390e12d992e5542417e188f3459488651efaa9 (patch)
treed6a6e670cca66d7272b7b1a6ec8b06e89938f9f6 /initramfs/distro-specs/ubuntu/functions-default
parentfix problem with demuxer (diff)
downloadcore-f8390e12d992e5542417e188f3459488651efaa9.tar.gz
core-f8390e12d992e5542417e188f3459488651efaa9.tar.xz
core-f8390e12d992e5542417e188f3459488651efaa9.zip
Changing distro-specific stuff to change default to Ubuntu 10.04 ...
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default17
1 files changed, 15 insertions, 2 deletions
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