mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
add firmware-partition-label option
This commit is contained in:
parent
61d43e92fd
commit
beb01f006a
2 changed files with 12 additions and 13 deletions
|
|
@ -26,6 +26,11 @@ in
|
|||
without the _defconfig part.
|
||||
'';
|
||||
};
|
||||
firmware-partition-label = mkOption {
|
||||
default = "FIRMWARE";
|
||||
type = types.str;
|
||||
description = "label of rpi firmware partition";
|
||||
};
|
||||
pin-inputs = {
|
||||
enable = mkOption {
|
||||
default = true;
|
||||
|
|
@ -94,7 +99,7 @@ in
|
|||
{
|
||||
Type = "oneshot";
|
||||
MountImages =
|
||||
"/dev/disk/by-label/FIRMWARE:${firmware-path}";
|
||||
"/dev/disk/by-label/${cfg.firmware-partition-label}:${firmware-path}";
|
||||
StateDirectory = "raspberrypi-firmware";
|
||||
ExecStart = pkgs.writeShellScript "migrate-rpi-firmware" ''
|
||||
shopt -s nullglob
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue