mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-09 03:56:03 +01:00
don't hardcode root partition uuid
This commit is contained in:
parent
462167cc93
commit
adf670acf2
1 changed files with 5 additions and 1 deletions
|
|
@ -33,7 +33,11 @@ in
|
||||||
boot.kernelParams =
|
boot.kernelParams =
|
||||||
if cfg.uboot.enable then [ ]
|
if cfg.uboot.enable then [ ]
|
||||||
else [
|
else [
|
||||||
"root=PARTUUID=2178694e-02" # todo: use option
|
# This is ugly and fragile, but the sdImage image has an msdos
|
||||||
|
# table, so the partition table id is a 1-indexed hex
|
||||||
|
# number. So, we drop the hex prefix and stick on a "02" to
|
||||||
|
# refer to the root partition.
|
||||||
|
"root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
|
||||||
"rootfstype=ext4"
|
"rootfstype=ext4"
|
||||||
"fsck.repair=yes"
|
"fsck.repair=yes"
|
||||||
"rootwait"
|
"rootwait"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue