mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Refactor config.sys
This commit is contained in:
parent
1ee412ee12
commit
a1ce4fe5b4
1 changed files with 7 additions and 8 deletions
|
|
@ -18,28 +18,27 @@ export EFISIZE="100M"
|
||||||
export LVSWAPSIZE="8G"
|
export LVSWAPSIZE="8G"
|
||||||
|
|
||||||
# Usually, these names can be left untouched.
|
# Usually, these names can be left untouched.
|
||||||
|
# If you change, keep them consistent through all distributions in your system.
|
||||||
export CRYPTPARTNAME="luks_volume"
|
export CRYPTPARTNAME="luks_volume"
|
||||||
export VGNAME="vg1"
|
export VGNAME="vg1"
|
||||||
export LVSWAPNAME="swap"
|
export LVSWAPNAME="swap"
|
||||||
|
|
||||||
# DO NOT touch following lines.
|
# DO NOT touch following lines.
|
||||||
|
|
||||||
# export to share with entire script
|
|
||||||
export PASSPHRASE
|
|
||||||
|
|
||||||
# Detect firmware type. 1 : EFI, 0 : BIOS
|
# Detect firmware type. 1 : EFI, 0 : BIOS
|
||||||
if [ -d /sys/firmware/efi ]; then
|
if [ -d /sys/firmware/efi ]; then
|
||||||
export ISEFI=1
|
export ISEFI=1 # Yes, EFI
|
||||||
else
|
else
|
||||||
export ISEFI=0
|
export ISEFI=0 # No, BIOS
|
||||||
fi
|
fi # is EFI firmaare?
|
||||||
|
|
||||||
# Set partition number based on the firmware type
|
# Set partition number based on the firmware type
|
||||||
if [ ${ISEFI} -eq 1 ] ; then
|
if [ ${ISEFI} -eq 1 ] ; then
|
||||||
# EFI system
|
# EFI firmware
|
||||||
export EFIPARTITION=1
|
export EFIPARTITION=1
|
||||||
export CRYPTPARTITION=2
|
export CRYPTPARTITION=2
|
||||||
else
|
else
|
||||||
# BIOS system
|
# BIOS firmware
|
||||||
export CRYPTPARTITION=1
|
export CRYPTPARTITION=1
|
||||||
fi
|
fi # EFI firmware
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue