Skip to content
Snippets Groups Projects
Commit ab571360 authored by Jonas Höglund's avatar Jonas Höglund
Browse files

Create rootfs2 volume and delay creation of overlay.

parent 0feb3c0b
Branches
No related tags found
No related merge requests found
...@@ -107,17 +107,15 @@ upgrade_ubi_volume bootfs $size bootfs2 5 ...@@ -107,17 +107,15 @@ upgrade_ubi_volume bootfs $size bootfs2 5
echo "Extracting rootfs" echo "Extracting rootfs"
size=$(extract_section $img rootfs) size=$(extract_section $img rootfs)
upgrade_ubi_volume rootfs $size rootfs1 4 upgrade_ubi_volume rootfs $size rootfs1 4
upgrade_ubi_volume rootfs $size rootfs2 6
echo "Saving nvram" echo "Saving nvram"
size=$(save_nvram) size=$(save_nvram)
upgrade_ubi_volume nvram $size migrator 10 upgrade_ubi_volume nvram $size migrator 10
echo "Creating overlay partition"
ubimkvol "/dev/ubi0" -n 11 -N overlay1 -t dynamic -s 38092800
echo "Upgrade completed; rebooting." echo "Upgrade completed; rebooting."
reboot reboot
# Halt execution of sysupgrade, both when sourced and execuded as a task. # Halt execution of sysupgrade, both when sourced and executed as a task.
return 1 || exit 1 return 1 || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment