From a482d160f7b1e1df4ec58fd73bbcfa79ef3a2e9e Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 8 Jan 2015 00:47:06 -0800 Subject: [PATCH] fix defect [bugs:#4497] Ubuntu pre script is not executed when provision CN --- xCAT-server/share/xcat/install/ubuntu/service.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/install/ubuntu/service.tmpl b/xCAT-server/share/xcat/install/ubuntu/service.tmpl index 01c1c74ac..ed857afdb 100644 --- a/xCAT-server/share/xcat/install/ubuntu/service.tmpl +++ b/xCAT-server/share/xcat/install/ubuntu/service.tmpl @@ -120,12 +120,12 @@ xserver-xorg xserver-xorg/config/monitor/mode-list \ select 1024x768 @ 60 Hz +# To workaround the "Unmount partitions that are in use?" question, +# run the "umount /media" after the preseed is read in d-i preseed/early_command string wget http://`cat /tmp/xcatserver`/install/autoinst/#HOSTNAME#.pre; \ chmod u+x #HOSTNAME#.pre; \ - ./#HOSTNAME#.pre - -# To workaround the "Unmount partitions that are in use?" question -d-i preseed/early_command string umount /media || true + ./#HOSTNAME#.pre; \ + umount /media || true d-i preseed/late_command string wget http://`cat /tmp/xcatserver`/install/autoinst/#HOSTNAME#.post; \ chmod u+x #HOSTNAME#.post; \