[OpenWrt-Devel] [PATCH] fstools: block: make extroot mount preparation more robust

Val Kulkov val.kulkov at gmail.com
Tue May 14 17:03:11 EDT 2019

The patch was proposed last month by Kenneth Miller [1]. It enables
extroot on x86_64-based devices. I confirm that the patch does what it
claims. The issue with extroot on x86_64 devices is described in
FS#2231 [2].

Any possibility to see this patch in the trunk any time soon?

With this patch, one can use extroot to claim the remaining space on
/dev/sda and store data on it. Sysupgrade of a x86_64 system remains a
tricky business however. For sysupgrade, I am currently using dd to
copy OpenWrt boot partition and squashfs partitions onto the target
drive and then using dd to copy the MBR bootstrap only, without the
partition table: "dd if=/dev/sdc of=/dev/sda bs=446 count=1". This
procedure retains the partition layout on the target drive.

[1] http://lists.infradead.org/pipermail/openwrt-devel/2019-April/016654.html
[2] https://bugs.openwrt.org/index.php?do=details&task_id=2231

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list