[LEDE-DEV] [PATCH] brcm2708: add squashfs rootfs image
Paul Spooren
spooren at informatik.uni-leipzig.de
Sat May 5 06:44:15 PDT 2018
On Thu, Mar 29, 2018 at 9:22 AM, Daniel Golle <daniel at makrotopia.org>
wrote:
> On Tue, Mar 27, 2018 at 07:42:18PM +0200, Christian Lamparter wrote:
>> This patch adds a image with squashfs as the root filesystem.
>> A rootfs_data partition will be generated on the first boot
>> and placed inside the rootfs partition (just after the squashfs
>> image).
>>
>> advantages:
>> - it is possible to migrate from an existing -ext4
>> installation and back via sysupgrade.
>> - existing partition layout will not be lost.
>> - slightly smaller image size.
>> - support for attendedsysupgrade
>>
>> disadvantages:
>> - needs f2fs + tools as well. This is because fs-tools decides on
>> the
>> blocksize of the sdcard. So either f2fs or ext4 can get choosen
>> as
>> the rootfs_data filesystem (depends on the size of the root
>> partition).
>> - rootfs_data is placed into the rootfs partition. This makes
>> it difficult for tools that expect a /dev/mmc0pX device.
>> It also makes it difficult for data recovery tools since they
>> might not expect to find a embedded partition or will be
>> confused.
>>
>> For people with existing build configurations: make sure to include
>> mkf2fs
>> and f2fsck package into the image... Otherwise the new -squashfs
>> image will
>> boot of a ram-overlay and won't keep the configurations after a
>> reboot.
>>
>> Cc: Álvaro Fernández Rojas <noltari at gmail.com>
>> Cc: Paul Spooren <spooren at informatik.uni-leipzig.de>
>> Cc: Daniel Golle <daniel at makrotopia.org>
>> Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
>
> Acked-by: Daniel Golle <daniel at makrotopia.org>
I tried the patch and the created squashfs works! However, trying a
sysupgrade errored saying it's unsupported. Is it possible we have to
teach the sysupgrade that squashfs is compatible, too?
Except from that, it works and runs with no problems on my RPI3, please
merge.
Regarding the doubts of Christian, is there any problem producing the
ext4 and squashfs per default?
Best, Paul
More information about the Lede-dev
mailing list