Correct the AN04 based on the experiment

This commit is contained in:
Suikan 2021-07-11 13:52:09 +09:00
parent e3d957c4be
commit a79ad35fe0

View file

@ -6,23 +6,23 @@ This application note explains how to use the favorite partition with favorite s
## Step 1: Making partitions
To use custom partitioning, the user must create all partitions by themselves. The user can do it with the popular partitioning tool like gparted. It is recommended to set the partition table as MBR and GPT for BIOS and EFI systems, respectively.
In this documentation, we assume the user wants to use /dev/sdb3 as LUKS partition to install Ubuntu.
In this documentation, we assume the user wants to use /dev/sda5 as LUKS partition to install Ubuntu.
## Step 2: Configuration
Next user must configure the config.sh.
The first parameter to edit is **DEV** parameter which represents the target device. In this example, it must be set as /dev/sdb.
```sh
export DEV="/dev/sdb"
export DEV="/dev/sda"
```
The second parameter to edit is **CRYPTPARTITION**. By default, this parameter is set automatically according to the firmware type. The EFIPARTITION parameter can be left untouched. This parameter is not used.
```sh
if [ ${ISEFI} -ne 0 ] ; then
# EFI firmware
export EFIPARTITION=1
export CRYPTPARTITION=3
export CRYPTPARTITION=5
else
# BIOS firmware
export CRYPTPARTITION=3
export CRYPTPARTITION=5
fi # EFI firmware
```
Makes sure the **ERASEALL** and **OVERWRITEINSTALL** are 0.
@ -33,11 +33,11 @@ source config.sh
```
Then, run the following command to create a LUKS volume.
```sh
cryptsetup luksFormat --iter-time "${ITERTIME}" --type=luks1 --key-file "${DEV}${CRYPTPARTITION}"
cryptsetup luksFormat --iter-time "${ITERTIME}" --type=luks1 "${DEV}${CRYPTPARTITION}"
```
This command sets up the LUKS volume on the specified partition. This command also asks for the passphrase of this LUKS volume.
## Step 4: Run Kaiten-yaki
Now, it's a time to run Kaiten-yaki
```sh
kaiten-yaki-ubuntu
source kaiten-yaki-ubuntu
```