summaryrefslogtreecommitdiff
path: root/mount_root.c
Commit message (Collapse)AuthorAgeFilesLines
* libfstools: get rid of "extroot_prefix" global variableRafał Miłecki2022-01-111-2/+1
| | | | | | | Replace it with mount_extroot() argument. It's cleaner than a global var. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* Update / fix extroot commentsRafał Miłecki2022-01-111-5/+1
| | | | | | | | Comment in start() was invalid as mount_extroot() doesn't handle any mounting internally. It was a misunderstanding coming from block.c function called just the same. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* libfstools: add ext4 filesystem typeFelix Fietkau2016-09-081-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* libfstools: add f2fs filesystem type and simplify fs type codeFelix Fietkau2016-09-081-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* libfstools: call volume_init() before accessing v->blkFelix Fietkau2016-09-081-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mount_root: check for preinit sentinel fileJohn Crispin2016-05-151-1/+5
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* Revert "mount_root: code failed in failsafe"John Crispin2016-05-151-5/+3
| | | | This reverts commit 09f8e0097fe1370700658542e7bda831c31de4bf.
* Revert "fstools: support for ext4fs overlay"John Crispin2016-05-111-2/+0
| | | | | | | | 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 failsafeJohn Crispin2016-05-101-3/+5
| | | | | | | | 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 overlayRam Chandra Jangir2016-04-221-0/+2
| | | | | | | | | 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 oneRoman Yeryomin2015-12-201-0/+2
| | | | | | | | `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)Felix Fietkau2015-03-221-0/+5
| | | | | | 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 casesJo-Philipp Wich2015-02-251-0/+4
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* mount_root: convert to ulog() apiJo-Philipp Wich2015-02-251-2/+4
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* mount_root: try extroot even without mtd volumeJo-Philipp Wich2015-02-171-8/+8
| | | | | | | 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 bitRafał Miłecki2015-01-061-0/+18
| | | | | | 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 callsRafał Miłecki2014-12-141-3/+3
| | | | | | This optimizes code: drops unneeded calls to the volume_find and checks. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* support for ubifs overlaydaniel2014-05-131-0/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* split fs-state back into seperate toolsJohn Crispin2014-04-071-0/+95
Signed-off-by: John Crispin <blogic@openwrt.org>