Compare commits
5 commits
aecc65be99
...
26039f1801
Author | SHA1 | Date | |
---|---|---|---|
26039f1801 | |||
4942f3eece | |||
d53fb9bf71 | |||
220f80a62f | |||
4cf628054f |
1 changed files with 14 additions and 5 deletions
19
install.uefi
19
install.uefi
|
@ -77,21 +77,31 @@ 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/vda3
|
mkfs.ext4 -L root /dev/vda4
|
||||||
|
|
||||||
mount /dev/vda3 /mnt
|
mount /dev/disk/by-label/root /mnt
|
||||||
mkdir -p /mnt/{boot,usr}
|
mkdir -p /mnt/{boot,usr}
|
||||||
mount /dev/vda1 /mnt/boot
|
mount /dev/disk/by-label/EFI /mnt/boot
|
||||||
mount /dev/vda2 /mnt/usr
|
mount /dev/disk/by-label/usr /mnt/usr
|
||||||
|
|
||||||
#--------------------------#
|
#--------------------------#
|
||||||
|
|
||||||
|
@ -133,7 +143,6 @@ 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