From 48810b2cfaf39f9278d759ac2a69a84981acb070 Mon Sep 17 00:00:00 2001 From: Chuck Date: Fri, 21 Feb 2020 17:49:56 -0800 Subject: nixos/nixos-enter: Create /tmp /tmp is normally created by the systemd-tmpfiles-setup systemd service at startup. Fixes #39140 --- nixos/modules/installer/tools/nixos-enter.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/installer/tools/nixos-enter.sh') diff --git a/nixos/modules/installer/tools/nixos-enter.sh b/nixos/modules/installer/tools/nixos-enter.sh index 1fdd4627a90..d3006e9fe17 100644 --- a/nixos/modules/installer/tools/nixos-enter.sh +++ b/nixos/modules/installer/tools/nixos-enter.sh @@ -69,6 +69,9 @@ mount --rbind /sys "$mountPoint/sys" # Run the activation script. Set $LOCALE_ARCHIVE to supress some Perl locale warnings. LOCALE_ARCHIVE="$system/sw/lib/locale/locale-archive" chroot "$mountPoint" "$system/activate" 1>&2 || true + + # Create /tmp + chroot "$mountPoint" systemd-tmpfiles --create --remove --exclude-prefix=/dev 1>&2 || true ) exec chroot "$mountPoint" "${command[@]}" -- cgit 1.4.1