also run shellcheck on kexec-run script
This commit is contained in:
parent
29f72fead3
commit
950f1e5ce8
2 changed files with 11 additions and 3 deletions
12
flake.nix
12
flake.nix
|
@ -25,8 +25,16 @@
|
|||
kexec-installer-nixos-2211 = kexec-installer nixos-2211;
|
||||
});
|
||||
nixosModules.kexec-installer = import ./nix/kexec-installer/module.nix;
|
||||
checks.x86_64-linux = {
|
||||
kexec-installer-unstable = nixos-unstable.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {};
|
||||
checks.x86_64-linux = let
|
||||
pkgs = nixos-unstable.legacyPackages.x86_64-linux;
|
||||
in {
|
||||
kexec-installer-unstable = pkgs.callPackage ./nix/kexec-installer/test.nix {};
|
||||
shellcheck = pkgs.runCommand "shellcheck" {
|
||||
nativeBuildInputs = [ pkgs.shellcheck ];
|
||||
} ''
|
||||
shellcheck ${(pkgs.nixos [self.nixosModules.kexec-installer]).config.system.build.kexecRun}
|
||||
touch $out
|
||||
'';
|
||||
kexec-installer-2211 = nixos-2211.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -63,7 +63,7 @@ in {
|
|||
echo "The image can depends only on DHCP to get network after reboot!" 2>&1
|
||||
fi
|
||||
|
||||
find | cpio -o -H newc | gzip -9 > ../extra.gz
|
||||
find . | cpio -o -H newc | gzip -9 > ../extra.gz
|
||||
popd
|
||||
cat extra.gz >> "''${SCRIPT_DIR}/initrd"
|
||||
rm -r "$INITRD_TMP"
|
||||
|
|
Loading…
Reference in a new issue