summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-06-04 20:37:30 +0200
committerDirk von Suchodoletz2007-06-04 20:37:30 +0200
commitc695e65603b1d7e9e80485c3b8d1e2eadbffb0db (patch)
tree74e9c6c35d2a994cf4249e8ae414183ef37d3888 /initramfs
parentPath change of xdialog.sh from /etc/X11 to /var/X11R6/bin (diff)
downloadcore-c695e65603b1d7e9e80485c3b8d1e2eadbffb0db.tar.gz
core-c695e65603b1d7e9e80485c3b8d1e2eadbffb0db.tar.xz
core-c695e65603b1d7e9e80485c3b8d1e2eadbffb0db.zip
Avoid pitfall if resolv.conf is a link.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1146 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs/distro-specs/debian/config-default2
-rwxr-xr-xinitramfs/initrd-stuff/bin/servconfig1
2 files changed, 2 insertions, 1 deletions
diff --git a/initramfs/distro-specs/debian/config-default b/initramfs/distro-specs/debian/config-default
index dac2b5aa..d1daa173 100644
--- a/initramfs/distro-specs/debian/config-default
+++ b/initramfs/distro-specs/debian/config-default
@@ -50,7 +50,7 @@ D_RCDIRS="/rc0.d /rc1.d /rc2.d /rc3.d /rc4.d /rc5.d /rc6.d"
D_INITDEFAULT="3"
# fixme: is keymap.sh really needed? Should be handled in a simpler fashion
# via boot.slx (see hwautocfg)
-D_INITSCRIPTS="mountvirtfs udev procps.sh bootlogd keymap.sh hwclock.sh sudo dbus-1"
+D_INITSCRIPTS="mountkernfs.sh mountvirtfs udev procps.sh bootlogd keymap.sh hwclock.sh sudo dbus-1"
D_XF86CONFFILE="/etc/X11/xorg.conf"
D_XORGBIN=/usr/X11R6/bin/X
D_XFONTPATH="/usr/X11R6/lib/X11/fonts/*"
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig
index aea0e16f..6a4f04e8 100755
--- a/initramfs/initrd-stuff/bin/servconfig
+++ b/initramfs/initrd-stuff/bin/servconfig
@@ -169,6 +169,7 @@ else
echo -e "$clientip\t$host_name" >>/mnt/etc/hosts
fi
# set up domainname and resolving
+rm -rf /mnt/etc/resolv.conf
test -n "$domain_name" && \
echo -e "# /etc/resolv.conf - file generated by\n#\t$0:\n\
#\t$date\n#options timeout:1 attempts:1 rotate\n\