35 lines
400 B
Bash
35 lines
400 B
Bash
#!/usr/bin/env bash
|
|
|
|
create_grub_cfg()
|
|
{
|
|
local target="$1"
|
|
local grub_cfg
|
|
|
|
grub_cfg="$(cat <<EOF
|
|
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
|
|
}
|
|
EOF
|
|
)"
|
|
|
|
echo "$grub_cfg" > "$target"
|
|
}
|
|
|
|
get_grub()
|
|
{
|
|
echo
|
|
}
|
|
|
|
create_efi_image()
|
|
{
|
|
echo
|
|
}
|
|
|