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(){
overlay_mount
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(){
debug "Mounting rootfs"
......@@ -145,6 +152,10 @@ elif [ "$boot" == "freeze" ]; then
wait_device
freeze_boot || fallback_shell
msg "Booting from" "$root (freeze)"
elif [ "$boot" == "image" ]; then
wait_device
image_boot || fallback_shell
msg "Booting from" "$root (freeze)"
else
wait_device
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