efi-boot-stub: Give startup.sh files more descriptive names
svn path=/nixos/trunk/; revision=33321
This commit is contained in:
parent
6f03065dce
commit
7a9a33e90d
@ -54,7 +54,7 @@ addEntry() {
|
|||||||
copyToKernelsDir $kernel; kernel=$result
|
copyToKernelsDir $kernel; kernel=$result
|
||||||
copyToKernelsDir $initrd; initrd=$result
|
copyToKernelsDir $initrd; initrd=$result
|
||||||
|
|
||||||
local startup="@efiSysMountPoint@/efi/nixos/$(cleanName $(readlink -f $path))-startup.nsh"
|
local startup="@efiSysMountPoint@/efi/nixos/generation-$generation-startup.nsh"
|
||||||
if ! test -e $startup; then
|
if ! test -e $startup; then
|
||||||
local dstTmp=$startup.tmp.$$
|
local dstTmp=$startup.tmp.$$
|
||||||
echo "$(echo $kernel | sed 's|@efiSysMountPoint@||' | sed 's|/|\\|g') systemConfig=$(readlink -f $path) init=$(readlink -f $path/init) initrd=$(echo $initrd | sed 's|@efiSysMountPoint@||' | sed 's|/|\\|g') $(cat $path/kernel-params)" > $dstTmp
|
echo "$(echo $kernel | sed 's|@efiSysMountPoint@||' | sed 's|/|\\|g') systemConfig=$(readlink -f $path) init=$(readlink -f $path/init) initrd=$(echo $initrd | sed 's|@efiSysMountPoint@||' | sed 's|/|\\|g') $(cat $path/kernel-params)" > $dstTmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user