StupidOS/releasetools/image.functions

35 lines
400 B
Plaintext
Raw Normal View History

2024-06-05 15:15:00 +00:00
#!/usr/bin/env bash
2024-05-28 04:54:10 +00:00
create_grub_cfg()
{
2024-06-05 15:15:00 +00:00
local target="$1"
local grub_cfg
grub_cfg="$(cat <<EOF
2024-05-28 04:54:10 +00:00
set timeout=15
set default=0
menuentry "StupidOS" {
echo "verify system integrity"
hashsum --hash sha256 --check /boot/hashfile --prefix /
multiboot /stpdldr.sys
module /vmstupid.sys
boot
}
2024-06-05 15:15:00 +00:00
EOF
)"
echo "$grub_cfg" > "$target"
2024-05-28 04:54:10 +00:00
}
2024-06-05 15:15:00 +00:00
get_grub()
{
echo
}
2024-05-28 04:54:10 +00:00
2024-06-05 15:15:00 +00:00
create_efi_image()
{
echo
}
2024-05-28 04:54:10 +00:00