mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-05 16:01:34 +00:00
ubuntu-cpc: Move apt-get to the top of uefi disk creation
This commit is contained in:
parent
63f28ec693
commit
a40cfd6180
@ -12,9 +12,10 @@ esac
|
|||||||
|
|
||||||
. /build/config/functions
|
. /build/config/functions
|
||||||
|
|
||||||
|
apt-get -qqy install dosfstools gdisk
|
||||||
|
|
||||||
create_partitions() {
|
create_partitions() {
|
||||||
disk_image="$1"
|
disk_image="$1"
|
||||||
apt-get install -qqy gdisk
|
|
||||||
sgdisk "${disk_image}" --zap-all
|
sgdisk "${disk_image}" --zap-all
|
||||||
case $architecture in
|
case $architecture in
|
||||||
arm64)
|
arm64)
|
||||||
@ -39,7 +40,6 @@ create_partitions() {
|
|||||||
|
|
||||||
create_and_mount_uefi_partition() {
|
create_and_mount_uefi_partition() {
|
||||||
uefi_dev="/dev/mapper${loop_device///dev/}p15"
|
uefi_dev="/dev/mapper${loop_device///dev/}p15"
|
||||||
apt-get -qqy install dosfstools
|
|
||||||
mountpoint="$1"
|
mountpoint="$1"
|
||||||
mkfs.vfat -F 32 -n UEFI "${uefi_dev}"
|
mkfs.vfat -F 32 -n UEFI "${uefi_dev}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user