lsgm/live/source/boot.sh

30 lines
645 B
Bash
Raw Normal View History

2023-09-30 17:52:10 +00:00
function debsquash {
lmp="${1}"
sfs="filesystem.squashfs"
if [ -f "(${data})${lmp}/vmlinuz" ]; then
linux_path="(${data})${lmp}/vmlinuz"
initrd_path="(${data})${lmp}/initrd.img"
else
linux_path="(squash)/vmlinuz"
initrd_path="(squash)/initrd.img"
loopback "squash" "${lmp}/${sfs}"
fi
2023-11-05 20:56:45 +00:00
#
echo 'linux'
echo "${linux_path}"
2023-11-03 23:30:39 +00:00
linux \
"${linux_path}" \
boot="live" \
elevator="deadline" \
ip="frommedia" \
live-media-path="${lmp}" \
live-media-uuid="${data_uuid}" \
toram="${sfs}"
2023-11-05 20:56:45 +00:00
#
echo
#
echo 'initrd'
echo "${initrd_path}"
2023-09-30 17:52:10 +00:00
initrd "${initrd_path}"
}