Skip to content

Commit

Permalink
Don't move /boot it might be a mounted partition
Browse files Browse the repository at this point in the history
  • Loading branch information
icetan committed Apr 4, 2020
1 parent 663114a commit f388be3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/infect
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ infect() {
echo root/.nix-defexpr/channels >> /etc/NIXOS_LUSTRATE

rm -rf /boot.bak
mv -v /boot /boot.bak
cp -rv /boot /boot.bak
rm -rf /boot/*

/nix/var/nix/profiles/system/bin/switch-to-configuration boot
}
Expand Down

0 comments on commit f388be3

Please sign in to comment.