mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
Set up thumb drive for rebuild
This commit is contained in:
parent
6255bf09ab
commit
2908ed7705
22
PRENINE.sh
Normal file
22
PRENINE.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
function myfail {
|
||||
echo "$1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ "`whoami`" != "root" ]; then
|
||||
myfail "Must run this script as r00t"
|
||||
fi
|
||||
|
||||
LFS="/mnt/newlfs"
|
||||
|
||||
# So USB thumb drive install does not need a network connection
|
||||
if [ ! -d ${LFS}/home/lfs ]; then
|
||||
if [ ! -f /home/lfs/lfs-buildscripts/USBFlash ]; then
|
||||
mkdir -p ${LFS}/home/lfs
|
||||
cp /home/lfs/lfs-sources.tar ${LFS}/home/lfs/
|
||||
cp -ar /home/lfs/lfs-buildscripts ${LFS}/home/lfs/
|
||||
touch ${LFS}/home/lfs/lfs-buildscripts/USBFlash
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user