-
-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: add rootfs type command line option
Previously, the loader always attempted to: 1. Mount a rofs root filesystem. 2. Mount a zfs root filesystem, if the previous failed. 3. Do nothing (i.e. keep the ramfs mounted as bootfs) if the others failed. This adds a new command line option to better control this behaviour, specifying which filesystem should be attempted for mounting root, falling back to the above if not specified. This option is set by scripts/build (scripts/run.py would be the obvious choice for setting a command line option, but it would require the user specifying the root fs type a run time in addition to build time). In addition, in a way this formalizes supporting ramfs as the root filesystem. As noted in the code, this support consists of simply mounting the fstab entries when ramfs is selected (this is in sync with what happened previously, when mounting zfs failed). So, there is no functionality added here, just documenting the option and making the code more clear and explicit. Signed-off-by: Fotis Xenakis <foxen@windowslive.com> Message-Id: <AM0PR03MB62926D4644E51479D0A075E2A62C0@AM0PR03MB6292.eurprd03.prod.outlook.com>
- Loading branch information
Showing
3 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters