diff options
-rw-r--r-- | core/install.html | 10 | ||||
-rw-r--r-- | core/scripts/act-chroot.sh | 3 | ||||
-rw-r--r-- | core/scripts/install.sh | 185 | ||||
-rw-r--r-- | core/scripts/mkparted.sh | 9 | ||||
-rw-r--r-- | core/scripts/setup-install.sh | 183 | ||||
-rw-r--r-- | core/scripts/setup-target.sh | 35 |
6 files changed, 227 insertions, 198 deletions
diff --git a/core/install.html b/core/install.html index 194e245..f95910f 100644 --- a/core/install.html +++ b/core/install.html @@ -38,6 +38,10 @@ <a href="http://devil-detail.blogspot.pt/2013/07/install-grub2-on-gpt-disk-dedicated-partition.html">gpt partition table</a>. </p> + <pre> + (parted) mklabel gpt + </pre> + <h3>/boot/efi</h3> <p>EFI System Partition, ESP type EF00. Partition @@ -57,7 +61,9 @@ <p>Boot partition. Partition with 1G provides room for crux iso to boot directly from grub.</p> - <pre>(parted) mkpart primary ext4 120MiB 1000MiB</pre> + <pre> + (parted) mkpart primary ext4 120MiB 1000MiB + </pre> <pre> (parted) align-check optimal 2 @@ -184,7 +190,7 @@ $ sudo mkfs.ext4 $BKL_PRT </pre> - <h2 id="step3">1.1.3. Prepare Target</h2> + <h2 id="step3">1.1.3. Prepare Install</h2> <pre> $ export CHROOT=/mnt diff --git a/core/scripts/act-chroot.sh b/core/scripts/act-chroot.sh index 587e35c..7f665f0 100644 --- a/core/scripts/act-chroot.sh +++ b/core/scripts/act-chroot.sh @@ -36,7 +36,6 @@ printf "1.1.3 mount point to chroot (/mnt):" #read CHROOT CHROOT="/mnt" - mount $BLK_ROOT $CHROOT mount $BLK_BOOT $CHROOT/boot @@ -44,7 +43,7 @@ mount $BLK_EFI $CHROOT/boot/efi mount $BLK_VAR $CHROOT/var mount $BLK_USR $CHROOT/usr -#mount $BLK_PRT $CHROOT/usr/ports +mount $BLK_PRT $CHROOT/usr/ports mount $BLK_HOME $CHROOT/home #mount -vt devpts devpts $CHROOT/dev/pts diff --git a/core/scripts/install.sh b/core/scripts/install.sh deleted file mode 100644 index 495b327..0000000 --- a/core/scripts/install.sh +++ /dev/null @@ -1,185 +0,0 @@ -#!/bin/bash -# Set Global Vars - -DIR=$(dirname "$PWD"); -DIR_PRT=$(dirname "$DIR")"/c9-ports"; -DIR_CONF=$DIR"/conf" - -printf "CHROOT="$CHROOT"\n"; -printf "DIR="$DIR"\n"; -printf "DIR_CONF="$DIR_CONF"\n"; -printf "DIR_PRT="$DIR_PRT"\n"; -read PAUSE - -printf "1.1.2 EFI block; (/dev/sda1):\n" -#read BLK_EFI -BLK_EFI="/dev/sda1" - -printf "1.1.2 boot block; (/dev/sda2):\n" -#read BLK_BOOT -BLK_BOOT="/dev/sda2" - -printf "1.1.2 root block; (/dev/sda3):\n" -#read BLK_ROOT -BLK_ROOT="/dev/sda3" -# -printf "1.1.2 var block; (/dev/sda4):\n" -#read BLK_VAR -BLK_VAR="/dev/sda4" -# -printf "1.1.2 usr block; (/dev/sda6):\n" -#read BLK_USR -BLK_USR="/dev/sda6" -# -printf "1.1.2 home block; (/dev/sda7):\n" -#read BLK_HOME -BLK_HOME="/dev/sda7" -# -printf "1.1.2 ports block; (/dev/sda8):\n" -#read BLK_PRT -BLK_PRT="/dev/sda8" - -printf "1.1.2 swap block; (/dev/sda9):\n" -#read BLK_SWP -BLK_SWP="/dev/sda9" - -printf "1.1.3 mount point to chroot (/mnt):\n" -#read CHROOT -CHROOT="/mnt" - -#manual_install() { - - echo "1.1.2 Creating File System on $BLK_EFI with fat32:" - mkfs.fat -F 32 $BLK_EFI - echo "1.1.2 Creating File System on $BLK_BOOT with ext4:" - mkfs.ext4 $BLK_BOOT - echo "1.1.2 Creating File System on $BLK_ROOT with ext4:" - mkfs.ext4 $BLK_ROOT - echo "1.1.2 Creating File System on $BLK_VAR with ext4:" - mkfs.ext4 $BLK_VAR - echo "1.1.2 Creating File System on $BLK_USR with ext4:" - mkfs.ext4 $BLK_USR - echo "1.1.2 Creating File System on $BLK_HOME with ext4:" - mkfs.ext4 $BLK_HOME -# echo "1.1.2 Creating File System on $BLK_PRT with ext4:" -# mkfs.ext4 $BLK_PRT - echo "1.1.2 Creating Swap File System on $BLK_SWP:" - #mkswap $BLK_SWP - -#} - - -#prepare_target(){ - - printf "1.1.3 mount point to chroot (/mnt):\n" - mount $BLK_ROOT $CHROOT - - mkdir -p $CHROOT/boot - mkdir -p $CHROOT/var - mkdir -p $CHROOT/usr - mkdir -p $CHROOT/media - mkdir -p $CHROOT/home - - mkdir -p $CHROOT/dev - mkdir -p $CHROOT/tmp - mkdir -p $CHROOT/proc - mkdir -p $CHROOT/sys - - mount $BLK_BOOT $CHROOT/boot - mkdir -p $CHROOT/boot/efi - mount $BLK_EFI $CHROOT/boot/efi - - mount $BLK_VAR $CHROOT/var - mkdir -p $CHROOT/var/lib/pkg - - mount $BLK_USR $CHROOT/usr - mkdir -p $CHROOT/usr/ports -# mount $BLK_PRT $CHROOT/usr/ports - mount $BLK_HOME $CHROOT/home - -#install_crux() { - - echo "1.1.4 Create core.lst and install pkgadd" - for p in /media/crux/core/*; do echo $p >> $CHROOT/core.lst; done - - tar xf "/media/crux/core/pkgutils#5.36-2.pkg.tar.xz" usr/bin/pkgadd -O > $CHROOT/pkgadd - - chmod +x $CHROOT/pkgadd - - echo "1.1.4 File core.lst complete, review list of packages before continue..." - read PAUSE - vim $CHROOT/core.lst - - echo "1.1.4 Starting install" - touch $CHROOT/var/lib/pkg/db - - cd $CHROOT - while read line; do - printf "Installing $line;\n" - $CHROOT/pkgadd -f -r $CHROOT $line - done < core.lst - - rm $CHROOT/pkgadd - rm $CHROOT/core.lst - - echo "1.1.5. Install extra packages;" - - mkdir $CHROOT/usr/ports/packages - cp /media/crux/core/* $CHROOT/usr/ports/packages - cp /media/crux/opt/* $CHROOT/usr/ports/packages - cp /media/crux/xorg/* $CHROOT/usr/ports/packages - - echo "Installing $CHROOT/usr/ports/packages/fakeroot#1.20.2-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/fakeroot#1.20.2-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/dbus#1.10.2-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/dbus#1.10.2-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/expat#2.1.0-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/expat#2.1.0-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/libnl#3.2.27-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/libnl#3.2.27-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/libpng#1.6.19-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/libpng#1.6.19-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/freetype#2.6.1-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/freetype#2.6.1-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/libffi#3.2.1-2.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/libffi#3.2.1-2.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/sqlite3#3.9.2-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/sqlite3#3.9.2-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/python#2.7.10-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/python#2.7.10-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/glib#2.46.2-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/glib#2.46.2-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/grub2#2.00-7.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/grub2#2.00-7.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/grub2-efi#2.00-4.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/grub2-efi#2.00-4.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/wireless-tools#29-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/wireless-tools#29-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/wpa_supplicant#2.5-2.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/wpa_supplicant#2.5-2.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/lvm2#2.02.133-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/lvm2#2.02.133-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/mdadm#3.3.4-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/mdadm#3.3.4-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/efivar#0.21-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/efivar#0.21-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/efibootmgr#0.12-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/efibootmgr#0.12-1.pkg.tar.xz" - echo "Installing $CHROOT/usr/ports/packages/dosfstools#3.0.26-1.pkg.tar.xz" - $CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/dosfstools#3.0.26-1.pkg.tar.xz" - - echo "1.1.6. Install extra ports;\n" - - mkdir $CHROOT/usr/ports/c9-ports - cp -r $DIR_PRT/* $CHROOT/usr/ports/c9-ports/ - - echo "1.1.7. dns resolver, copy resolv.conf;\n" - cp /etc/resolv.conf $CHROOT/etc - - echo "1.1.8. Install Handbook\n" - cp /media/crux/handbook.txt $CHROOT/root/ - - echo "1.1.9. Install Skeletons\n" - cp -r $DIR_CONF/skel $CHROOT/etc/ -#} -printf "Ready to chroot $CHROOT /bin/bash \n" diff --git a/core/scripts/mkparted.sh b/core/scripts/mkparted.sh deleted file mode 100644 index b71d6b2..0000000 --- a/core/scripts/mkparted.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -DEVICE=/dev/sda - - -#parted --script /sda \ -# mklabel gpt \ -# mkpart primary 1MiB 100MiB \ -# mkpart primary 100MiB 200MiB \ diff --git a/core/scripts/setup-install.sh b/core/scripts/setup-install.sh new file mode 100644 index 0000000..553aee0 --- /dev/null +++ b/core/scripts/setup-install.sh @@ -0,0 +1,183 @@ +#!/bin/sh + +# First we define the function +ConfirmOrExit () +{ + while true + do + echo -n "Please confirm (y or n) :" + read CONFIRM + case $CONFIRM in + y|Y|YES|yes|Yes) break ;; + n|N|no|NO|No) + echo "Aborting - you entered $CONFIRM" + exit + ;; + *) echo "Please enter only y or n" + esac + done + echo "You entered $CONFIRM. Continuing ..." +} + +# Set Global Vars +DEV=$1 +CHROOT="/mnt" +##read BLK_SWP +BLK_SWP="/dev/sda9" + +##read BLK_EFI +BLK_EFI="${DEV}1" +##read BLK_BOOT +BLK_BOOT="${DEV}2" +##read BLK_ROOT +BLK_ROOT="${DEV}3" +##read BLK_VAR +BLK_VAR="${DEV}4" + +DIR=$(dirname "$PWD"); +DIR_PRT=$(dirname "$DIR")"/c9-ports"; +DIR_CONF=$DIR"/core/conf" + +CRUX_ISO="/boot/crux-3.2.iso" + +echo "Device: $DEV\n" + +echo "1.1.2 EFI block; ($BLK_EFI)" +echo "1.1.2 boot block; ($BLK_BOOT)" +echo "1.1.2 root block; ($BLK_ROOT)" +echo "1.1.2 var block; ($BLK_VAR)" +#echo "1.1.2 swap block; ($BLK_SWP)\n" + +echo "CHROOT=$CHROOT"; +echo "DIR=$DIR"; +echo "DIR_CONF=$DIR_CONF"; +echo "DIR_PRT=$DIR_PRT"; + +echo "CRUX_ISO=$CRUX_ISO"; +ConfirmOrExit + +echo "1.1.2 Creating File System on $BLK_EFI with fat32:" +mkfs.fat -F 32 $BLK_EFI +echo "1.1.2 Creating File System on $BLK_BOOT with ext4:" +mkfs.ext4 $BLK_BOOT +echo "1.1.2 Creating File System on $BLK_ROOT with ext4:" +mkfs.ext4 $BLK_ROOT +echo "1.1.2 Creating File System on $BLK_VAR with ext4:" +mkfs.ext4 $BLK_VAR +#echo "1.1.2 Creating Swap File System on $BLK_SWP:" +#mkswap $BLK_SWP + +echo "1.1.3 mount point to chroot (/mnt):\n" +mount $BLK_ROOT $CHROOT + +mkdir -p $CHROOT/boot +mount $BLK_BOOT $CHROOT/boot +mkdir -p $CHROOT/boot/efi +mount $BLK_EFI $CHROOT/boot/efi +mkdir -p $CHROOT/var +mount $BLK_VAR $CHROOT/var + +mkdir -p $CHROOT/dev +mkdir -p $CHROOT/tmp +mkdir -p $CHROOT/proc +mkdir -p $CHROOT/sys + +mkdir -p $CHROOT/var/lib/pkg +mkdir -p $CHROOT/usr/ports + +mkdir -p $CHROOT/media +mkdir -p $CHROOT/home + +mount --bind /dev $CHROOT/dev +mount -vt devpts devpts $CHROOT/dev/pts +mount -vt tmpfs shm $CHROOT/dev/shm +mount -vt proc proc $CHROOT/proc +mount -vt sysfs sysfs $CHROOT/sys + +mount -o loop $CRUX_ISO $CHROOT/media +#install_crux() { + +echo "1.1.4 Create core.lst and install pkgadd" +for p in $CHROOT/media/crux/core/*; do echo $p >> $CHROOT/core.lst; done + +tar xf "$CHROOT/media/crux/core/pkgutils#5.36-2.pkg.tar.xz" usr/bin/pkgadd -O > $CHROOT/pkgadd + +chmod +x $CHROOT/pkgadd + +echo "1.1.4 File core.lst complete, review list of packages before continue..." +read PAUSE +vim $CHROOT/core.lst + +echo "1.1.4 Starting install" +touch $CHROOT/var/lib/pkg/db + +cd $CHROOT +while read line; do + echo "Installing $line;\n" + $CHROOT/pkgadd -f -r $CHROOT $line +done < core.lst + +rm $CHROOT/pkgadd +rm $CHROOT/core.lst + +echo "1.1.5. Install extra packages;" + +mkdir $CHROOT/usr/ports/packages +cp $CHROOT/media/crux/core/* $CHROOT/usr/ports/packages +cp $CHROOT/media/crux/opt/* $CHROOT/usr/ports/packages +cp $CHROOT/media/crux/xorg/* $CHROOT/usr/ports/packages + +echo "Installing $CHROOT/usr/ports/packages/fakeroot#1.20.2-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/fakeroot#1.20.2-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/dbus#1.10.2-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/dbus#1.10.2-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/expat#2.1.0-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/expat#2.1.0-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/libnl#3.2.27-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/libnl#3.2.27-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/libpng#1.6.19-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/libpng#1.6.19-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/freetype#2.6.1-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/freetype#2.6.1-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/libffi#3.2.1-2.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/libffi#3.2.1-2.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/sqlite3#3.9.2-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/sqlite3#3.9.2-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/python#2.7.10-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/python#2.7.10-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/glib#2.46.2-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/glib#2.46.2-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/grub2#2.00-7.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/grub2#2.00-7.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/grub2-efi#2.00-4.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/grub2-efi#2.00-4.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/wireless-tools#29-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/wireless-tools#29-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/wpa_supplicant#2.5-2.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/wpa_supplicant#2.5-2.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/lvm2#2.02.133-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/lvm2#2.02.133-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/mdadm#3.3.4-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/mdadm#3.3.4-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/efivar#0.21-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/efivar#0.21-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/efibootmgr#0.12-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/efibootmgr#0.12-1.pkg.tar.xz" +echo "Installing $CHROOT/usr/ports/packages/dosfstools#3.0.26-1.pkg.tar.xz" +$CHROOT/usr/bin/pkgadd -f -r $CHROOT "$CHROOT/usr/ports/packages/dosfstools#3.0.26-1.pkg.tar.xz" + +echo "1.1.6. Install extra ports;\n" + +mkdir $CHROOT/usr/ports/c9-ports +cp -r $DIR_PRT/* $CHROOT/usr/ports/c9-ports/ + +echo "1.1.7. dns resolver, copy resolv.conf;\n" +cp /etc/resolv.conf $CHROOT/etc + +echo "1.1.8. Install Handbook\n" +cp /media/crux/handbook.txt $CHROOT/root/ + +echo "1.1.9. Install Skeletons\n" +cp -r $DIR_CONF/skel $CHROOT/etc/ +#} +echo "Ready to chroot $CHROOT /bin/bash \n" diff --git a/core/scripts/setup-target.sh b/core/scripts/setup-target.sh new file mode 100644 index 0000000..4f38853 --- /dev/null +++ b/core/scripts/setup-target.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +# First we define the function +ConfirmOrExit () +{ + while true + do + echo -n "Please confirm (y or n) :" + read CONFIRM + case $CONFIRM in + y|Y|YES|yes|Yes) break ;; + n|N|no|NO|No) + echo "Aborting - you entered $CONFIRM" + exit + ;; + *) echo "Please enter only y or n" + esac + done + echo "You entered $CONFIRM. Continuing ..." +} + +DEV=$1 + +echo "Device: $DEV\n" +ConfirmOrExit + +parted --script $DEV \ + mklabel gpt \ + mkpart ESP fat32 1MiB 120MiB \ + mkpart primary ext4 120MiB 720MiB \ + mkpart primary ext4 720MiB 2720MiB \ + mkpart primary ext4 2720MiB 5000MiB \ + set 1 boot on + +exit 0; |