secure boot

This commit is contained in:
Marc Beninca 2023-11-04 00:30:39 +01:00
parent 331f39e157
commit 6b80fe6bfc
5 changed files with 105 additions and 13 deletions

View file

@ -1,5 +1,4 @@
function debsquash {
boot_toram='true'
lmp="${1}"
sfs="filesystem.squashfs"
if [ -f "(${data})${lmp}/vmlinuz" ]; then
@ -10,16 +9,13 @@ function debsquash {
initrd_path="(squash)/initrd.img"
loopback "squash" "${lmp}/${sfs}"
fi
boot_linux="linux \
\"${linux_path}\" \
boot=\"live\" \
elevator=\"deadline\" \
ip=\"frommedia\" \
live-media-path=\"${lmp}\" \
toram"
if [ "${boot_toram}" == "true" ]; then
boot_linux="${boot_linux}=\"${sfs}\""
fi
echo_eval "${boot_linux}"
linux \
"${linux_path}" \
boot="live" \
elevator="deadline" \
ip="frommedia" \
live-media-path="${lmp}" \
live-media-uuid="${data_uuid}" \
toram="${sfs}"
initrd "${initrd_path}"
}