modules/image: move extlinux population into extraBootFiles hook
This commit is contained in:
@@ -121,10 +121,9 @@ in
|
|||||||
|
|
||||||
(
|
(
|
||||||
cd files
|
cd files
|
||||||
echo "running installBootLoader"
|
echo "installing extraBootFiles"
|
||||||
${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d .
|
|
||||||
echo "ran installBootLoader"
|
|
||||||
for d in ${lib.escapeShellArgs cfg.extraBootFiles}; do
|
for d in ${lib.escapeShellArgs cfg.extraBootFiles}; do
|
||||||
|
echo "installing '$d'"
|
||||||
cp -R $d/* ./
|
cp -R $d/* ./
|
||||||
done
|
done
|
||||||
echo "copied extraBootFiles"
|
echo "copied extraBootFiles"
|
||||||
@@ -382,5 +381,11 @@ in
|
|||||||
chmod -w $out
|
chmod -w $out
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
sane.image.extraBootFiles = lib.optionals config.boot.loader.generic-extlinux-compatible.enable [
|
||||||
|
(pkgs.runCommandLocal "populate-extlinux" {} ''
|
||||||
|
${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d "$out"
|
||||||
|
'')
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user