From 24ae50590b533a53cbc254854ec7159c5e02c804 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 29 Mar 2021 20:43:11 -0500 Subject: Add TESTUSERID when chrooting and use 'id -u' commnd to get user id. Use when adding tester user to passwd. --- lfs.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lfs.sh') diff --git a/lfs.sh b/lfs.sh index d1b23a5..fedf71a 100755 --- a/lfs.sh +++ b/lfs.sh @@ -116,6 +116,7 @@ sudo chroot "${LFS}" /usr/bin/env \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ NUMPROCS="${NUMPROCS}" \ MAKEFLAGS="${MAKEFLAGS}" \ + TESTERUID="$(id -u)" \ /bin/bash --login +h -c "/sources/insidechroot.sh 7" retval=$? @@ -147,6 +148,7 @@ sudo chroot "${LFS}" /usr/bin/env \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ NUMPROCS="${NUMPROCS}" \ MAKEFLAGS="${MAKEFLAGS}" \ + TESTERUID="$(id -u)" \ /bin/bash --login +h -c "/sources/insidechroot.sh 8" printf "%b" "${CYN}EXITED ${RED}CHROOT${RST} ENVIRONMENT...${RST}\n" -- cgit v1.2.3-54-g00ecf