mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31: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"
|
||||
|
||||
# Usually, these names can be left untouched.
|
||||
# If you change, keep them consistent through all distributions in your system.
|
||||
export CRYPTPARTNAME="luks_volume"
|
||||
export VGNAME="vg1"
|
||||
export LVSWAPNAME="swap"
|
||||
|
||||
# DO NOT touch following lines.
|
||||
|
||||
# export to share with entire script
|
||||
export PASSPHRASE
|
||||
|
||||
# Detect firmware type. 1 : EFI, 0 : BIOS
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
export ISEFI=1
|
||||
export ISEFI=1 # Yes, EFI
|
||||
else
|
||||
export ISEFI=0
|
||||
fi
|
||||
export ISEFI=0 # No, BIOS
|
||||
fi # is EFI firmaare?
|
||||
|
||||
# Set partition number based on the firmware type
|
||||
if [ ${ISEFI} -eq 1 ] ; then
|
||||
# EFI system
|
||||
# EFI firmware
|
||||
export EFIPARTITION=1
|
||||
export CRYPTPARTITION=2
|
||||
else
|
||||
# BIOS system
|
||||
# BIOS firmware
|
||||
export CRYPTPARTITION=1
|
||||
fi
|
||||
fi # EFI firmware
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue