devices.xmupc1: some fix

This commit is contained in:
陈浩南 2024-02-26 21:03:38 +08:00
parent 380532ffbc
commit eac0a49f51
2 changed files with 4 additions and 0 deletions

View File

@ -101,5 +101,6 @@ inputs:
bugs = [ "xmunet" "amdpstate" ];
users.users = [ "chn" "xll" "zem" "yjq" "gb" ];
};
services.hardware.bolt.enable = true;
};
}

View File

@ -227,6 +227,7 @@ inputs:
grep = "${inputs.pkgs.gnugrep}/bin/grep";
awk = "${inputs.pkgs.gawk}/bin/awk";
chattr = "${inputs.pkgs.e2fsprogs}/bin/chattr";
lsmod = "${inputs.pkgs.kmod}/bin/lsmod";
};
services.roll-rootfs =
{
@ -237,6 +238,8 @@ inputs:
serviceConfig.Type = "oneshot";
script = let inherit (fileSystems.rollingRootfs) device path; in
''
while ! lsmod | grep -q btrfs; do sleep 1; done
while ! [ -e ${device} ]; do sleep 1; done
mount ${device} /mnt -m
if [ -f /mnt${path}/current/.timestamp ]
then