make jffs2 module provide o.rootfs, conditionally
it's enabled if config.rootfsType == "jffs2"
This commit is contained in:
parent
63a89f7d0d
commit
42725f56f9
5 changed files with 33 additions and 6 deletions
|
@ -25,6 +25,10 @@ in {
|
|||
type = types.attrsOf type_service;
|
||||
};
|
||||
filesystem = mkOption { type = types.anything; };
|
||||
rootfsType = mkOption {
|
||||
default = "squashfs";
|
||||
type = types.str;
|
||||
};
|
||||
kernel = {
|
||||
src = mkOption { type = types.package; } ;
|
||||
extraPatchPhase = mkOption {
|
||||
|
@ -107,7 +111,8 @@ in {
|
|||
};
|
||||
};
|
||||
boot.commandLine = [
|
||||
"console=ttyS0,115200 panic=10 oops=panic init=/bin/init loglevel=8 rootfstype=squashfs"
|
||||
"console=ttyS0,115200 panic=10 oops=panic init=/bin/init loglevel=8"
|
||||
"rootfstype=${config.rootfsType}"
|
||||
"fw_devlink=off"
|
||||
];
|
||||
users.root = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue