Files
lfs-auto/script/box.dev.partition.setup.sh
2016-04-28 21:29:59 +07:00

23 lines
618 B
Bash
Executable File

#!/bin/bash
# using : this script is an part of linux from scratch auto-build
# section 2.2. preparing a new partition
# prepare partition, file system for linux from scratch
# assume that build partition early mount into docker in /mnt/lfs
# author : kevin.leptons@gmail.com
# libs
source configuration.sh
# bash options
set -e
# create tools directory to build temporary system
mkdir -vp $root_tools
# link tools directory to root
sudo ln -svnf $root_tools /tools
# transfer partition own from root to build user
sudo chown $build_user_group:$build_user $root /tools