mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 14:32:20 +08:00
30 lines
437 B
Bash
30 lines
437 B
Bash
#!/bin/bash
|
|
|
|
LFS=/mnt/newlfs
|
|
|
|
function myfail {
|
|
echo "$1"
|
|
exit 1
|
|
}
|
|
|
|
|
|
if [ "`whoami`" != "root" ]; then
|
|
myfail "Must run this script as r00t"
|
|
fi
|
|
|
|
mkdir -p ${LFS}/{etc,var} ${LFS}/usr/{bin,lib,sbin}
|
|
|
|
for i in bin lib sbin; do
|
|
ln -s usr/$i ${LFS}/$i
|
|
done
|
|
|
|
mkdir -p ${LFS}/lib64
|
|
|
|
mkdir -p ${LFS}/tools
|
|
|
|
chown lfs ${LFS}/{usr{,/*},lib,var,etc,bin,sbin,tools}
|
|
chown lfs ${LFS}/lib64
|
|
|
|
mkdir -p ${LFS}/sources
|
|
chown lfs ${LFS}/sources
|