fixup! proper partx support

This commit is contained in:
parazyd 2017-05-15 16:33:44 +02:00
parent bcfc231bdd
commit d693431e25
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 6 additions and 5 deletions

View File

@ -19,6 +19,8 @@
## helper functions that make my life easier ## helper functions that make my life easier
vars+=(loopdevice)
build_image_dist() { build_image_dist() {
fn build_image_dist fn build_image_dist
req=(arch size parted_type) req=(arch size parted_type)

View File

@ -48,9 +48,8 @@ image_partition_raw_dos() {
## get loopdevice (see ./helpers) ## get loopdevice (see ./helpers)
findloopdev findloopdev
mappdevice="/dev/mapper/${mappdevice}" bootpart=${loopdevice}p1
bootpart=${mappdevice}p1 rootpart=${loopdevice}p2
rootpart=${mappdevice}p2
notice "formatting partitions..." notice "formatting partitions..."
sudo mkfs.vfat ${bootpart} sudo mkfs.vfat ${bootpart}
@ -79,8 +78,8 @@ image_partition_raw_gpt() {
findloopdev findloopdev
bootpart=${loopdevice}p1 bootpart="${loopdevice}p1"
rootpart=${loopdevice}p2 rootpart="${loopdevice}p2"
notice "formatting partitions..." notice "formatting partitions..."
sudo mkfs.ext4 -L rootfs ${rootpart} sudo mkfs.ext4 -L rootfs ${rootpart}