luci-app-attendedsysupgrade: maintain value of owut.rootfs_size in LuCI app
authorEric Fahlgren <[email protected]>
Wed, 28 May 2025 16:09:33 +0000 (09:09 -0700)
committerPaul Donald <[email protected]>
Wed, 28 May 2025 19:06:46 +0000 (22:06 +0300)
commit42d32dff7f718d27ae7ccc65ebc83d001ebf14e3
treeea13e1f2fcbc15a1f67d9c8b9bab6f17fec405e3
parent09d3add964d3c128cc3985eb7baa7875d0022cdb
luci-app-attendedsysupgrade: maintain value of owut.rootfs_size in LuCI app

If someone has used owut to install an image with a modified rootfs
partition size, then using LuCI Attended Sysupgrade would change
it back, causing either a build failure or loss of configuration.

We fix this by simply adding the value from the owut config to the
build request (or 'null' if it doesn't exist).  The ASU server
then builds the image with the correct rootfs size, avoiding
these issues.

This value is not and should not be exposed in the LuCI app's
options, as it is quite advanced, very fragile and should only be
used by those who have researched the issues involved, typically
by reading the owut documentation and testing with owut first.

Signed-off-by: Eric Fahlgren <[email protected]>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js