mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 14:32:20 +08:00
fixes
This commit is contained in:
parent
bd6449e60e
commit
07074cfb3e
@ -1,40 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
LFS=/mnt/newlfs
|
|
||||||
#LFS=/home/mpeters/newlfs
|
|
||||||
|
|
||||||
function myfail {
|
|
||||||
echo "$1"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if [ "`whoami`" != "lfs" ]; then
|
|
||||||
myfail "Must run this script as lfs user"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat > ~/.bash_profile << "EOF"
|
|
||||||
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat > ~/.bashrc << "EOF"
|
|
||||||
set +h
|
|
||||||
umask 022
|
|
||||||
LFS=/mnt/newlfs
|
|
||||||
LC_ALL=POSIX
|
|
||||||
LFS_TGT=$(uname -m)-lfs-linux-gnu
|
|
||||||
PATH=/usr/bin
|
|
||||||
if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
|
|
||||||
PATH=$LFS/tools/bin:$PATH
|
|
||||||
CONFIG_SITE=$LFS/usr/share/config.site
|
|
||||||
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
|
|
||||||
|
|
||||||
# below is conservative but safe
|
|
||||||
export MAKEFLAGS=-j8
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo "type the following"
|
|
||||||
echo ""
|
|
||||||
echo " source ~/.bash_profile"
|
|
||||||
|
|
||||||
|
|
@ -21,7 +21,6 @@ UUID=2322f8e6-1d3d-43ee-becf-67417a46e124 /boot ext2 defaults
|
|||||||
UUID=a36492d9-de00-4c51-9649-cd5b5004f790 swap swap defaults 0 0
|
UUID=a36492d9-de00-4c51-9649-cd5b5004f790 swap swap defaults 0 0
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat > /etc/fstab << "EOF"
|
|
||||||
# When the USBFlash boots
|
# When the USBFlash boots
|
||||||
cat > /etc/fstab << "EOF"
|
cat > /etc/fstab << "EOF"
|
||||||
# UUID/File System mount-point type options dump fsck
|
# UUID/File System mount-point type options dump fsck
|
||||||
|
Loading…
Reference in New Issue
Block a user