readme,to_ram

This commit is contained in:
Marc Beninca 2023-11-21 14:29:08 +01:00
parent 4f563bcc20
commit 2ab2f2032e
6 changed files with 159 additions and 74 deletions

View file

@ -10,6 +10,8 @@ menuentry '↑ cmd →' { menu 'cmd' }
menu_split
menuentry 'check_squashfs = enforce' { check_squashfs='enforce' }
menuentry 'check_squashfs = no' { check_squashfs='no' }
menuentry 'to_ram = enforce' { to_ram='enforce' }
menuentry 'to_ram = no' { to_ram='no' }
menu_split
menuentry 'bash / stable / tui' { debsquash '/boot/bash/stable/tui' }
menuentry 'bash / stable / gui' { debsquash '/boot/bash/stable/gui' }

View file

@ -23,6 +23,10 @@ function debsquash {
echo
echo 'linux'
echo "${linux_path}"
toram='toram'
if [ "${to_ram}" == 'enforce' ] ; then
toram="${toram}=${sfs}"
fi
linux \
"${linux_path}" \
boot="live" \
@ -30,7 +34,7 @@ elevator="deadline" \
ip="frommedia" \
live-media-path="${lmp}" \
live-media-uuid="${data_uuid}" \
toram="${sfs}"
"${toram}"
#
echo
echo 'initrd'

View file

@ -1,7 +1,7 @@
function env {
action="${1}"
setparams \
'check_squashfs' 'time_out'
'check_squashfs' 'grub_sleep' 'time_out' 'to_ram'
if [ "${action}" == 'load' ] ; then
load_env \
--skip-sig \
@ -49,5 +49,7 @@ function env_mod {
function env_set {
check_squashfs='enforce'
grub_sleep=999
time_out=10
to_ram='enforce'
}