From b6e99140cc8d24fce773efff503806ad9cedab3d Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Mon, 28 Jun 2021 13:15:42 +0900 Subject: [PATCH] Implement the ERASE ALL --- ubuntu_en.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ubuntu_en.md b/ubuntu_en.md index 76eb6e9..d31fa34 100644 --- a/ubuntu_en.md +++ b/ubuntu_en.md @@ -62,9 +62,14 @@ This is very critical part of the installation. Following is a set of parameter If you don't like above configuration, you can modify the following parameter before pasting to the shell window. Note : EFI/BIOS detection is done automatically. ```bash -# Device to install the linux. +# Storage device to install the linux. export DEV="/dev/sda" +# Whether you want to erase all contents of the storage device or not. +# 1 : Yes, I want to erase all. +# 2 : No, I want to add to the existing Linux distributions. +export ERASEALL=1 + # Logical Volume name for your Linux installation. Keep it unique from other distribution. export LVROOTNAME="ubuntu" @@ -109,6 +114,7 @@ C A U T I O N : Following script destroys all the data in your disk. Make sure y If you want to add a new distribution to the existing distribution, following script block must be skipped. The GPT for EFI, MBR for BIOS is created. ```bash +if [ ${ERASEALL} -eq 1 ] ; then # Optional : Create partitions for in the physical disk. # Assign specified space and rest of disk to the EFI and LUKS partition, respectively. if [ ${ISEFI} -eq 1 ] ; then @@ -129,9 +135,13 @@ sfdisk ${DEV} <