libqa: Set PROMPT 1 for syslinux by default

We want people to be able to easily choose between boot entries.
This commit is contained in:
Colin Walters 2014-02-15 19:35:24 -05:00
parent fb2c568cfb
commit 97ef560a00

View File

@ -361,7 +361,7 @@ function pullDeploy(mntdir, srcrepo, osname, target, revision, originRepoUrl, ca
bootLoaderLink.make_symbolic_link('loader.0', cancellable);
GSystem.file_ensure_directory(bootLoaderDir0, true, cancellable);
let syslinuxPath = mntdir.resolve_relative_path('boot/loader/syslinux.cfg');
syslinuxPath.replace_contents('TIMEOUT 10\n', null, false, Gio.FileCreateFlags.NONE, cancellable);
syslinuxPath.replace_contents('TIMEOUT 20\nPROMPT 1\n', null, false, Gio.FileCreateFlags.NONE, cancellable);
// A compatibility symlink for syslinux
let syslinuxDir = mntdir.resolve_relative_path('boot/syslinux');