From 35fb2e4ac065ed124e51144eb29d5eabd3c1425c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C6=B0=C6=A1ng=20Vi=E1=BB=87t=20Ho=C3=A0ng?= Date: Fri, 1 May 2026 12:04:01 +0700 Subject: [PATCH] nixos/etc-overlay: replace `pkgs.move-mount-beneath` with `mount` As of util-linux v2.42, we can use `mount` to move mounts beneath. --- nixos/modules/system/etc/etc.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/modules/system/etc/etc.nix b/nixos/modules/system/etc/etc.nix index 65d3a5192c45..dcd2f7fccca7 100644 --- a/nixos/modules/system/etc/etc.nix +++ b/nixos/modules/system/etc/etc.nix @@ -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