add work around for umount partition question during ubuntu install

This commit is contained in:
Victor Hu 2014-11-11 15:37:29 -05:00
parent 21d12983c9
commit a09f2d6faa
2 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,9 @@ d-i preseed/early_command string wget http://`cat /tmp/xcatserver`/install/autoi
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
d-i preseed/late_command string wget http://`cat /tmp/xcatserver`/install/autoinst/#HOSTNAME#.post; \
chmod u+x #HOSTNAME#.post; \
cp ./#HOSTNAME#.post /target/root/post.script; \

View File

@ -105,6 +105,9 @@ d-i preseed/early_command string wget http://`cat /tmp/xcatserver`/install/autoi
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
d-i preseed/late_command string wget http://`cat /tmp/xcatserver`/install/autoinst/#HOSTNAME#.post; \
chmod u+x #HOSTNAME#.post; \
cp ./#HOSTNAME#.post /target/root/post.script; \