mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
Add 7.5 - create directories
This commit is contained in:
parent
1b4481df6f
commit
fc1ef6f13c
2 changed files with 34 additions and 0 deletions
22
scripts/chapter7/7.5-create-dirs.sh
Normal file
22
scripts/chapter7/7.5-create-dirs.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
mkdir -pv /{boot,home,mnt,opt,srv}
|
||||
|
||||
mkdir -pv /etc/{opt,sysconfig}
|
||||
mkdir -pv /lib/firmware
|
||||
mkdir -pv /media/{floppy,cdrom}
|
||||
mkdir -pv /usr/{,local/}{include,src}
|
||||
mkdir -pv /usr/local/{bin,lib,sbin}
|
||||
mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man}
|
||||
mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo}
|
||||
mkdir -pv /usr/{,local/}share/man/man{1..8}
|
||||
mkdir -pv /var/{cache,local,log,mail,opt,spool}
|
||||
mkdir -pv /var/lib/{color,misc,locate}
|
||||
|
||||
ln -sfv /run /var/run
|
||||
ln -sfv /run/lock /var/lock
|
||||
|
||||
install -dv -m 0750 /root
|
||||
install -dv -m 1777 /tmp /var/tmp
|
||||
|
||||
|
|
@ -432,3 +432,15 @@ then
|
|||
stop_script "chapter7/7.4-enter-chroot.sh"
|
||||
fi
|
||||
|
||||
# Chapter 7.5
|
||||
# ===========
|
||||
echo "Creating Directories"
|
||||
su -c "bash $PWD/chapter7/7.5-create-dirs.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter7/7.5-create-dirs.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue