libfstools: add ext4 filesystem type Signed-off-by: Felix Fietkau <nbd@nbd.name>
libfstools: add f2fs filesystem type and simplify fs type code Signed-off-by: Felix Fietkau <nbd@nbd.name>
libfstools: call volume_init() before accessing v->blk Signed-off-by: Felix Fietkau <nbd@nbd.name>
mount_root: check for preinit sentinel file Signed-off-by: John Crispin <john@phrozen.org>
Revert "mount_root: code failed in failsafe" This reverts commit 09f8e0097fe1370700658542e7bda831c31de4bf.
Revert "fstools: support for ext4fs overlay" This reverts commit bf4f08af9b8fe991216023a906182744eb1e4645. this patch was breaking devices that have a normal ext4 rootfs Signed-off-by: John Crispin <john@phrozen.org>
mount_root: code failed in failsafe the code checks if we are in PREINIT before mounting root. change this to check if root is actually mounted. this is a regression caused by ssh login during failsafe. Signed-off-by: John Crispin <john@phrozen.org>
fstools: support for ext4fs overlay This change will enables eMMC (ext4 fs) boot support, when we try to boot from eMMC card then it will read partition names from /sys/block/mmcblkX/mmcblkXY/uevent file and will mount the rootfs_data partition as ext4fs overlay. Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
fstools: allow to stack another overlay on top of existing one `mount_root ram' will pivot existing root to ram even if it was overlayfs already. Useful when playing with new configurations as it allows to preserve existing/stable configuration. Signed-off-by: Roman Yeryomin <roman@advem.lv>
mount_root: keep track of overlay initialization state (via xattr) Remove all files (except sysupgrade.tgz) if /etc/init.d/done was not called Signed-off-by: Felix Fietkau <nbd@openwrt.org>
mount_root: better log messages for ram overlay cases Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
mount_root: convert to ulog() api Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
mount_root: try extroot even without mtd volume This is a precondition for supporting external overlays on ext4 root fs. Also rename volume pointer variables for better clarity. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
document mount_root and block (extroot) a bit Also s/fs_data/blkdev_path/ which should make more sense. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
libfstools: accept volume as argument in most calls This optimizes code: drops unneeded calls to the volume_find and checks. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
support for ubifs overlay Signed-off-by: Daniel Golle <daniel@makrotopia.org>
split fs-state back into seperate tools Signed-off-by: John Crispin <blogic@openwrt.org>