mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
14 lines
377 B
Bash
14 lines
377 B
Bash
#! @shell@ -e
|
|
|
|
chrootenvDest=/run/chrootenv/@name@
|
|
|
|
# Enter the LFS chroot environment
|
|
sudo chroot --userspec "$USER:${GROUPS[0]}" --groups "${GROUPS[0]}" $chrootenvDest /usr/bin/env -i \
|
|
TERM="$TERM" \
|
|
DISPLAY="$DISPLAY" \
|
|
HOME="$HOME" \
|
|
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
|
LANG="$LANG" \
|
|
SSL_CERT_FILE="$SSL_CERT_FILE" \
|
|
/bin/bash --login
|