This commit is contained in:
YellowJacketLinux 2024-10-12 19:44:21 -07:00
parent 9d73d30759
commit 9acdc5eca2
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# LFS user # LFS user on flash drive
groupadd lfs groupadd lfs
useradd -d /home/lfs -s /bin/bash -g lfs -m -k /dev/null lfs useradd -d /home/lfs -s /bin/bash -g lfs -m -k /dev/null lfs

View File

@ -17,4 +17,13 @@ if [ ! -f ${LFS}/USBFlash ]; then
cp /home/lfs/lfs-sources.tar ${LFS}/home/lfs/ cp /home/lfs/lfs-sources.tar ${LFS}/home/lfs/
cp -ar /home/lfs/lfs-buildscripts ${LFS}/home/lfs/ cp -ar /home/lfs/lfs-buildscripts ${LFS}/home/lfs/
touch ${LFS}/USBFlash touch ${LFS}/USBFlash
else
echo "Mounting existing /boot"
#uncomment below before final build
# [ ! -d /mnt/newlfs/boot ] && mkdir /mnt/newlfs/boot
# mount /mnt/newlfs/boot
# if [ $? -ne 0 ]; then
# echo "failed to mount /mnt/newlfs/boot"
# exit 1
# fi
fi fi