feat(image): fix osrel in uki
This commit is contained in:
parent
e4ebf7ea7f
commit
b3ad9f9962
2 changed files with 8 additions and 9 deletions
image
|
@ -128,15 +128,13 @@ ln -sf ../demo.service rootfs/usr/lib/systemd/system/basic.target.wants/demo.ser
|
|||
$systemd/usr/bin/ukify build \
|
||||
--linux $kernel/bzImage \
|
||||
--initrd $initrd/initrd.xz \
|
||||
--os-release rootfs/etc/os-release \
|
||||
--stub $systemd/usr/lib/systemd/boot/efi/linuxx64.efi.stub \
|
||||
--os-release @rootfs/etc/os-release \
|
||||
--cmdline "$kernelCmdLine" \
|
||||
-o boot/patos.efi
|
||||
|
||||
cp ${systemd}/usr/lib/systemd/boot/efi/systemd-bootx64.efi boot/
|
||||
|
||||
echo "timeout 1" > boot/loader.conf
|
||||
echo -e "title PatOS Platform\nefi /EFI/Linux/patos.efi" > boot/patos.conf
|
||||
|
||||
cat <<EOF > repart.d/10-esp.conf
|
||||
[Partition]
|
||||
|
@ -147,7 +145,6 @@ SizeMaxBytes=96M
|
|||
CopyFiles=/boot/systemd-bootx64.efi:/EFI/BOOT/BOOTX64.EFI
|
||||
CopyFiles=/boot/patos.efi:/EFI/Linux/patos.efi
|
||||
CopyFiles=/boot/loader.conf:/loader/loader.conf
|
||||
CopyFiles=/boot/patos.conf:/loader/entries/patos.conf
|
||||
EOF
|
||||
|
||||
cat <<EOF > repart.d/10-root.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue