You are here: / home / 2009 / 12 / 04

Fri, 04 Dec 2009

Good advice for preseeding the debian-installer

If you use a script to do some customisations run via preseed/late_command then don't do it the following way:
d-i preseed/late_command string cp /hd-media/do-tib-stuff.sh /target/tmp ; in-target /tmp/do-tib-stuff.sh ; rm /target/tp/do-mystuff.sh!
That way you'll never notice, if your script run successfully as its exit code is eaten by the removal. When running several late-commands always use && to chain the commands, so if one command fails the processing will stop and the installer will show you a nice message that indeed something went wrong.

postet at 10:53 into [Debian] permanent link


About

Alexander Tolimar Reichle-Schmehl lives in Tuttlingen / Germany. He works as IT manager (specialized on Unix and SAN/Storage) for an international automotive supplier.

Links