nixos/etc-overlay: replace pkgs.move-mount-beneath with mount

As of util-linux v2.42, we can use `mount` to move mounts beneath.
This commit is contained in:
Lương Việt Hoàng
2026-05-07 21:33:09 +07:00
parent fa82216aca
commit 35fb2e4ac0
+1 -5
View File
@@ -330,11 +330,7 @@ in
done
# Move the new temporary /etc mount underneath the current /etc mount.
#
# This should eventually use util-linux to perform this move beneath,
# however, this functionality is not yet in util-linux. See this
# tracking issue: https://github.com/util-linux/util-linux/issues/2604
${pkgs.move-mount-beneath}/bin/move-mount --move --beneath "$tmpEtcMount" /etc
mount --move --beneath "$tmpEtcMount" /etc
# Unmount the top /etc mount to atomically reveal the new mount.
umount --lazy --recursive /etc