diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-09-11 22:18:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-09-12 00:14:52 +0200 |
commit | ee248b6a7043f308eaaa2b1deb708b52d4923659 (patch) | |
tree | 9640a99b3b0f586c18888eea2d8bc034c9bd80fd /gnu/build/activation.scm | |
parent | ecd06ca9faa7b87fb7be770f563c8a0760a64709 (diff) | |
download | guix-ee248b6a7043f308eaaa2b1deb708b52d4923659.tar guix-ee248b6a7043f308eaaa2b1deb708b52d4923659.tar.gz |
activation: Make the /bin/sh symlink at activation time.
* gnu/build/install.scm (directives): Remove "/bin/sh".
* gnu/build/activation.scm (activate-/bin/sh): New procedure.
* gnu/system.scm (operating-system-activation-script): Use it.
Diffstat (limited to 'gnu/build/activation.scm')
-rw-r--r-- | gnu/build/activation.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm index 009c1fff0a..ee82a078b9 100644 --- a/gnu/build/activation.scm +++ b/gnu/build/activation.scm @@ -26,6 +26,7 @@ #:export (activate-users+groups activate-etc activate-setuid-programs + activate-/bin/sh activate-current-system)) ;;; Commentary: @@ -214,6 +215,11 @@ copy SOURCE to TARGET." (for-each make-setuid-program programs)) +(define (activate-/bin/sh shell) + "Change /bin/sh to point to SHELL." + (symlink shell "/bin/sh.new") + (rename-file "/bin/sh.new" "/bin/sh")) + (define %current-system ;; The system that is current (a symlink.) This is not necessarily the same ;; as the system we booted (aka. /run/booted-system) because we can re-build |