WIP generate bootable disk image with partition table

This commit is contained in:
Daniel Barlow
2023-12-05 23:16:53 +00:00
parent b519bd15df
commit 5adfb0230f
5 changed files with 73 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ in
} ''
cp -a ${o.rootfsFiles} tmp
${if config.boot.loader.extlinux.enable
then "(cd tmp && ln -s ${o.extlinux} boot)"
then "(cd tmp && chmod -R +w . && rmdir boot && cp -a ${o.extlinux} boot)"
else ""
}
size=$(du -s --apparent-size --block-size 1024 tmp |cut -f1)