Kaydet (Commit) c5ed87fb authored tarafından Adınız's avatar Adınız

image boot support

üst cc8dd66b
...@@ -93,6 +93,13 @@ freeze_boot(){ ...@@ -93,6 +93,13 @@ freeze_boot(){
overlay_mount overlay_mount
common_boot || fallback_shell common_boot || fallback_shell
} }
image_boot(){
mkdir -p /source/ # lower
debug "Mounting image"
mount -t auto -o defaults,ro $root /source
mount -t auto -o defaults,ro /source/$image /rootfs
common_boot || fallback_shell
}
normal_boot(){ normal_boot(){
debug "Mounting rootfs" debug "Mounting rootfs"
...@@ -145,6 +152,10 @@ elif [ "$boot" == "freeze" ]; then ...@@ -145,6 +152,10 @@ elif [ "$boot" == "freeze" ]; then
wait_device wait_device
freeze_boot || fallback_shell freeze_boot || fallback_shell
msg "Booting from" "$root (freeze)" msg "Booting from" "$root (freeze)"
elif [ "$boot" == "image" ]; then
wait_device
image_boot || fallback_shell
msg "Booting from" "$root (freeze)"
else else
wait_device wait_device
classic_boot || fallback_shell classic_boot || fallback_shell
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment