Compare commits
No commits in common. "26039f1801721812f8e1205f322a34ed231fecdb" and "aecc65be9925acf2dc1faa19745568cfce929c14" have entirely different histories.
26039f1801
...
aecc65be99
1 changed files with 5 additions and 14 deletions
19
install.uefi
19
install.uefi
|
@ -77,31 +77,21 @@ USR="15G"
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
#Discoverable Partitions Specification
|
#Discoverable Partitions Specification
|
||||||
# /boot /dev/vda1
|
|
||||||
# /usr /dev/vda2
|
|
||||||
# (usr-hash) /dev/vda3
|
|
||||||
# /(root) /dev/vda4
|
|
||||||
# Reset Partition Table
|
|
||||||
sgdisk -og "${DRIVE}"
|
sgdisk -og "${DRIVE}"
|
||||||
# Create EFI System Partition
|
|
||||||
sgdisk -n 0:0:+"${ESP}" -t 0:c12a7328-f81f-11d2-ba4b-00a0c93ec93b -c 0:"EFI System Partition" "${DRIVE}"
|
sgdisk -n 0:0:+"${ESP}" -t 0:c12a7328-f81f-11d2-ba4b-00a0c93ec93b -c 0:"EFI System Partition" "${DRIVE}"
|
||||||
#sgdisk -n 0:0:+512M -t 0:ef00 -c 0:ESP "${DRIVE}"
|
#sgdisk -n 0:0:+512M -t 0:ef00 -c 0:ESP "${DRIVE}"
|
||||||
# Create usr-Partition
|
|
||||||
sgdisk -n 0:0:+"${USR}" -t 0:8484680c-9521-48c6-9c11-b0720656f69e -c 0:"Usr-Partition" "${DRIVE}"
|
sgdisk -n 0:0:+"${USR}" -t 0:8484680c-9521-48c6-9c11-b0720656f69e -c 0:"Usr-Partition" "${DRIVE}"
|
||||||
# Create usrhash-Partition
|
|
||||||
sgdisk -n 0:0:+64M -t 0: -c 0:"usrhash-Partition" "${DRIVE}"
|
|
||||||
# Create Root-Partition
|
|
||||||
sgdisk -n 0:0:0 -t 0:4f68bce3-e8cd-4db1-96e7-fbcaf984b709 -c 0:"System Root" "${DRIVE}"
|
sgdisk -n 0:0:0 -t 0:4f68bce3-e8cd-4db1-96e7-fbcaf984b709 -c 0:"System Root" "${DRIVE}"
|
||||||
|
|
||||||
|
|
||||||
mkfs.vfat -n EFI -F 32 /dev/vda1
|
mkfs.vfat -n EFI -F 32 /dev/vda1
|
||||||
mkfs.ext4 -L usr /dev/vda2
|
mkfs.ext4 -L usr /dev/vda2
|
||||||
mkfs.ext4 -L root /dev/vda4
|
mkfs.ext4 -L root /dev/vda3
|
||||||
|
|
||||||
mount /dev/disk/by-label/root /mnt
|
mount /dev/vda3 /mnt
|
||||||
mkdir -p /mnt/{boot,usr}
|
mkdir -p /mnt/{boot,usr}
|
||||||
mount /dev/disk/by-label/EFI /mnt/boot
|
mount /dev/vda1 /mnt/boot
|
||||||
mount /dev/disk/by-label/usr /mnt/usr
|
mount /dev/vda2 /mnt/usr
|
||||||
|
|
||||||
#--------------------------#
|
#--------------------------#
|
||||||
|
|
||||||
|
@ -143,6 +133,7 @@ echo "${HOSTNAME_NEW}" > /mnt/etc/hostname
|
||||||
cat > /mnt/etc/hosts << EOF
|
cat > /mnt/etc/hosts << EOF
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
::1 localhost
|
::1 localhost
|
||||||
|
127.0.1.1 ${HOSTNAME_NEW}.localedomain ${HOSTNAME_NEW}
|
||||||
EOF
|
EOF
|
||||||
#echo "127.0.0.1 localhost" > /etc/hosts
|
#echo "127.0.0.1 localhost" > /etc/hosts
|
||||||
#echo "::1 localhost" >> /etc/hosts
|
#echo "::1 localhost" >> /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue