try for a fix

This commit is contained in:
parazyd 2016-09-30 12:28:17 +02:00
parent 291ed626bd
commit a25b54612f
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 6 additions and 4 deletions

View File

@ -48,13 +48,15 @@ image_partition_raw_dos() {
## get loopdevice and mapper device (see ./helpers) ## get loopdevice and mapper device (see ./helpers)
findloopmapp findloopmapp
mappdevice="/dev/mapper/$mappdevice" mappdevice="/dev/mapper/${mappdevice}"
bootpart=${mappdevice}p1 bootpart=${mappdevice}p1
rootpart=${mappdevice}p2 rootpart=${mappdevice}p2
sleep 1
notice "formatting partitions..." notice "formatting partitions..."
sudo mkfs.vfat $bootpart sudo mkfs.vfat ${bootpart}
sudo mkfs.ext4 $rootpart sudo mkfs.ext4 ${rootpart}
} }
image_partition_raw_gpt() { image_partition_raw_gpt() {
@ -78,7 +80,7 @@ image_partition_raw_gpt() {
rootpart=${mappdevice}p2 rootpart=${mappdevice}p2
notice "formatting partitions..." notice "formatting partitions..."
sudo mkfs.ext4 -L rootfs $rootpart sudo mkfs.ext4 -L rootfs ${rootpart}
} }
image_pack_dist() { image_pack_dist() {