mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 08:08:45 +08:00
run roll-rootfs before sysroot.mount
This commit is contained in:
parent
47d8d0a026
commit
ab9dac4166
@ -232,6 +232,7 @@
|
|||||||
# --option substituters http://192.168.122.1:5000 --option require-sigs false
|
# --option substituters http://192.168.122.1:5000 --option require-sigs false
|
||||||
# sudo chattr -i var/empty
|
# sudo chattr -i var/empty
|
||||||
# nix-shell -p ssh-to-age --run 'cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age'
|
# nix-shell -p ssh-to-age --run 'cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age'
|
||||||
|
# sudo nixos-rebuild switch --flake .#vps6 --log-format internal-json -v |& nom --json
|
||||||
"vps6-bootstrap" = inputs.nixpkgs.lib.nixosSystem
|
"vps6-bootstrap" = inputs.nixpkgs.lib.nixosSystem
|
||||||
{
|
{
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
@ -139,8 +139,8 @@ inputs:
|
|||||||
boot.initrd.systemd.services.roll-rootfs =
|
boot.initrd.systemd.services.roll-rootfs =
|
||||||
{
|
{
|
||||||
wantedBy = [ "local-fs-pre.target" ];
|
wantedBy = [ "local-fs-pre.target" ];
|
||||||
after = [ "cryptsetup.target" "systemd-hibernate-resume.slice" ];
|
after = [ "cryptsetup.target" "systemd-hibernate-resume.service" ];
|
||||||
before = [ "local-fs-pre.target" ];
|
before = [ "local-fs-pre.target" "sysroot.mount" ];
|
||||||
unitConfig.DefaultDependencies = false;
|
unitConfig.DefaultDependencies = false;
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = let inherit (fileSystems.rollingRootfs) device path; in stripeTabs
|
script = let inherit (fileSystems.rollingRootfs) device path; in stripeTabs
|
||||||
|
Loading…
Reference in New Issue
Block a user