From 2789c08ed93f6f9849b4d5c10d21074b1401f3da Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 27 Feb 2006 12:21:39 +0000 Subject: run harddrake because a crappy snd-usb-audio workaround may do something at shutdown (#21329) --- tools/draklive | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index 95f25fc05..948778edd 100755 --- a/tools/draklive +++ b/tools/draklive @@ -480,14 +480,18 @@ sub post_install_system { run_({ root => get_system_root($live) }, 'perl', '-MStorable', '-e', qq(Storable::store({ UNKNOWN => {} }, '/etc/sysconfig/harddrake2/previous_hw'))); - #- interactive mode can lead to race in initscripts - #- (don't use addVarsInSh from MDK::Common, it breaks shell escapes) - substInFile { s/^PROMPT=.*/PROMPT=no/ } get_system_root($live) . '/etc/sysconfig/init'; - #- remove some build-machine specific configuration output(get_system_root($live) . $_, '') foreach qw(/etc/fstab /etc/mtab /etc/modprobe.conf); substInFile { undef $_ if /^[^#]/ } get_system_root($live) . '/etc/modprobe.preload'; + #- run harddrake because a crappy snd-usb-audio workaround may do something at shutdown + #- (do it after the modprobe files are cleaned) + run_({ root => get_system_root($live) }, '/usr/share/harddrake/service_harddrake', 'stop'); + + #- interactive mode can lead to race in initscripts + #- (don't use addVarsInSh from MDK::Common, it breaks shell escapes) + substInFile { s/^PROMPT=.*/PROMPT=no/ } get_system_root($live) . '/etc/sysconfig/init'; + #- disable first boot wizard output(get_system_root($live) . '/etc/sysconfig/firstboot', 'FIRSTBOOT=no'); #- enable drakx-finish-install -- cgit v1.2.1