Fix installation (missing session-init)

This commit is contained in:
Alexander Sosedkin 2020-01-07 07:10:05 +01:00
parent d848df3a33
commit 38e7b238ae

View file

@ -17,9 +17,12 @@ writeText "login-inner" ''
[ "$#" -gt 0 ] || echo "If nothing works, use the rescue shell and read ${config.build.installationDir}/usr/lib/login-inner"
[ "$#" -gt 0 ] || echo "If it does not help, report bugs at https://github.com/t184256/nix-on-droid-bootstrap/issues"
${lib.optionalString (! config.build.initialBuild) ''
set +u
. "/nix/var/nix/profiles/per-user/$USER/profile/etc/profile.d/nix-on-droid-session-init.sh"
set -u
''
}
${lib.optionalString config.build.initialBuild ''
if [ -e /etc/UNINTIALISED ]; then