summaryrefslogtreecommitdiffstats
path: root/initramfs/distro-specs/ubuntu/functions-default
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs/distro-specs/ubuntu/functions-default')
-rw-r--r--initramfs/distro-specs/ubuntu/functions-default8
1 files changed, 6 insertions, 2 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-default b/initramfs/distro-specs/ubuntu/functions-default
index 0bd396cb..a327e797 100644
--- a/initramfs/distro-specs/ubuntu/functions-default
+++ b/initramfs/distro-specs/ubuntu/functions-default
@@ -50,9 +50,13 @@ synapticsdrv=""
}
# distro specific function called from servconfig script
config_distro () {
-# add the halt link to the 0 and 6 runlevel directories
+ # add the halt link to the 0 and 6 runlevel directories
ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt
ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot
+
+ # remove annoying udev rule set for changing eth interface
+ rm /mnt/etc/udev/rules.d/*persistent-net.rules >/dev/null 2>&1
+
# set default runlevel
sed -e "s/.*initdefault/id:${D_INITDEFAULT}:initdefault/" -i /mnt/etc/inittab
}
@@ -125,7 +129,7 @@ if [ "x$start_syslog" != "xno" ] ; then
# fixme, welcher Syslog wird verwendet?
#if syslog
testmkd /mnt/var/log/news
- echo -e "# /etc/syslog.conf - file generated by $0" >/mnt/etc/syslogd.conf
+ echo -e "# /etc/syslog.conf - file generated by $0" >/mnt/etc/syslog.conf
# test -n "$log_servers" && \
# for logserver in $log_servers; do
# echo -e "*.*;*.*;*.*;*kern.!*\t@$logserver" >>/mnt/etc/syslog.conf