From d923fb5f91bb42563159e8fe137711280674e08d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 7 Aug 2012 13:31:13 +0200 Subject: [PATCH] mambawelcome: reconfigure grub first to make sure this is done even in case of later script errors --- mambawelcome/mambawelcome.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mambawelcome/mambawelcome.sh b/mambawelcome/mambawelcome.sh index 0412973..8298914 100755 --- a/mambawelcome/mambawelcome.sh +++ b/mambawelcome/mambawelcome.sh @@ -44,6 +44,10 @@ Copyright (c) 2007-2010 by Silvan Calarco dcop_write $"Configuring..." 5 +# update grub device mappings and config +/usr/sbin/grub-mkdevicemap -n +/usr/sbin/update-grub + [ -r $INPUT_FILE ] || { echo $"Error: cannot read input file $INPUT_FILE; aborting." >&2 abort @@ -159,10 +163,6 @@ sh -c "echo $INSTALL_ROOT_PASSWORD | passwd --stdin" || { sed -i "s|netbios name =.*|netbios name = $INSTALL_HOSTNAME|" /etc/samba/smb.conf } -# update grub device mappings and config -/usr/sbin/grub-mkdevicemap -n -/usr/sbin/update-grub - # configure suspend (from suspend rpm post script) and recreate mkinitramfs grep path_to_resume_device_file /etc/suspend.conf && { SWAPLINE=`/sbin/swapon -s |grep -m1 ^/dev/`