mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Correct the AN04 based on the experiment
This commit is contained in:
parent
e3d957c4be
commit
a79ad35fe0
1 changed files with 6 additions and 6 deletions
|
|
@ -6,23 +6,23 @@ This application note explains how to use the favorite partition with favorite s
|
||||||
## Step 1: Making partitions
|
## 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.
|
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
|
## Step 2: Configuration
|
||||||
Next user must configure the config.sh.
|
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.
|
The first parameter to edit is **DEV** parameter which represents the target device. In this example, it must be set as /dev/sdb.
|
||||||
```sh
|
```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.
|
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
|
```sh
|
||||||
if [ ${ISEFI} -ne 0 ] ; then
|
if [ ${ISEFI} -ne 0 ] ; then
|
||||||
# EFI firmware
|
# EFI firmware
|
||||||
export EFIPARTITION=1
|
export EFIPARTITION=1
|
||||||
export CRYPTPARTITION=3
|
export CRYPTPARTITION=5
|
||||||
else
|
else
|
||||||
# BIOS firmware
|
# BIOS firmware
|
||||||
export CRYPTPARTITION=3
|
export CRYPTPARTITION=5
|
||||||
fi # EFI firmware
|
fi # EFI firmware
|
||||||
```
|
```
|
||||||
Makes sure the **ERASEALL** and **OVERWRITEINSTALL** are 0.
|
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.
|
Then, run the following command to create a LUKS volume.
|
||||||
```sh
|
```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.
|
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
|
## Step 4: Run Kaiten-yaki
|
||||||
Now, it's a time to run Kaiten-yaki
|
Now, it's a time to run Kaiten-yaki
|
||||||
```sh
|
```sh
|
||||||
kaiten-yaki-ubuntu
|
source kaiten-yaki-ubuntu
|
||||||
```
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue