bug fixes
This commit is contained in:
parent
88b0241bc5
commit
09544be20d
|
|
@ -41,12 +41,17 @@ if [[ "$LAYOUT" ]]; then
|
||||||
mkfs.vfat -F32 -n "EFIBOOT" "$PART2"
|
mkfs.vfat -F32 -n "EFIBOOT" "$PART2"
|
||||||
mkfs.btrfs -L "ROOT" "$PART3" -f
|
mkfs.btrfs -L "ROOT" "$PART3" -f
|
||||||
mount -t btrfs "$PART3" /mnt
|
mount -t btrfs "$PART3" /mnt
|
||||||
for x in "${SUBVOLUMES[@]}"; do
|
IFS=' ' read -r -a _LIST <<< "$SUBVOLUMES"
|
||||||
|
for x in "${_LIST[@]}"; do
|
||||||
btrfs subvolume create /mnt/"${x}"
|
btrfs subvolume create /mnt/"${x}"
|
||||||
done
|
done
|
||||||
umount /mnt
|
umount /mnt
|
||||||
for y in "${SUBVOLUMES[@]}"; do
|
mount -o "$MOUNTOPTION",subvol=@ "$PART3" /mnt
|
||||||
mount -o "$MOUNTOPTION",subvol="${y}" "$PART3" /mnt
|
for y in "${_LIST[@]:1}"; do
|
||||||
|
mkdir /mnt/"${y}"
|
||||||
|
done
|
||||||
|
for z in "${_LIST[@]:1}"; do
|
||||||
|
mount -o "$MOUNTOPTION",subvol="${z}" "$PART3" /mnt/"${z}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
modprobe dm-mod
|
modprobe dm-mod
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ efi_check () {
|
||||||
set_btrfs () {
|
set_btrfs () {
|
||||||
# Used -a to get more than one argument
|
# Used -a to get more than one argument
|
||||||
echo "Please enter your btrfs subvolumes separated by space"
|
echo "Please enter your btrfs subvolumes separated by space"
|
||||||
echo "usualy they start with @ for root or @home, @temp etc."
|
echo "usualy they start with @ like @home, @temp etc."
|
||||||
echo "Defaults are @, @home, @var, @tmp, @.snapshots"
|
echo "Defaults are @, @home, @var, @tmp, @.snapshots"
|
||||||
echo " "
|
echo " "
|
||||||
read -r -p "press enter to use default: " -a ARR
|
read -r -p "press enter to use default: " -a ARR
|
||||||
|
|
@ -88,7 +88,7 @@ set_btrfs () {
|
||||||
set_option "SUBVOLUMES" "(@ @home @var @tmp @.snapshots)"
|
set_option "SUBVOLUMES" "(@ @home @var @tmp @.snapshots)"
|
||||||
else
|
else
|
||||||
# An array is a list of values.
|
# An array is a list of values.
|
||||||
NAMES=()
|
NAMES=(@)
|
||||||
for i in "${ARR[@]}"; do
|
for i in "${ARR[@]}"; do
|
||||||
# push values to array
|
# push values to array
|
||||||
NAMES+=("$i")
|
NAMES+=("$i")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue