Add 'osu --resize' command to support resizing of the rootfs partition. 08/309608/1 accepted/tizen/8.0/unified/20240416.155535
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 3 Apr 2024 09:40:53 +0000 (11:40 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 12 Apr 2024 11:11:08 +0000 (20:11 +0900)
commit1e3f4487381cbd792cad3a0956d32de1ce02b43b
tree487cb97e0b635266a737d8716ec0965770ba4801
parentacb94a14aeb54e463c363f76ce484f16b602b945
Add 'osu --resize' command to support resizing of the rootfs partition.

resize2fs is disabled in initrd to not modify the flashed image during
system boot, so that delta file can be applied during OS Upgrade.
However additional software may need to be installed during development,
so the ability to perfrom resize is added.
To resize, the rootfs partition must be mounted as RW:

    mount -o rw,remount /
    osu --resize

Change-Id: I74914464295629db5e8e2b696f41e1eb7a316b02
tools/osu/CMakeLists.txt
tools/osu/osu.c
tools/osu/resize.c [new file with mode: 0644]
tools/osu/resize.h [new file with mode: 0644]