move Prep partition flag setting to imgcapture.pm

This commit is contained in:
huweihua 2014-09-01 04:03:49 -04:00
parent 027d4ff52a
commit ab8e64217f

View File

@ -92,14 +92,14 @@ elif [ "$arch" = "ppc64" ]; then
dd if=/usr/lib/yaboot/yaboot of=/dev/sda1 bs=4096
# Set 0x41 as the partition type of the first partition
echo A | dd of=/dev/sda bs=1 count=1 seek=450
# echo A | dd of=/dev/sda bs=1 count=1 seek=450
elif [ -f "/lib/lilo/pmac/yaboot" ]; then
# set bootloader
echo "dd if=/lib/lilo/pmac/yaboot of=/dev/sda1 bs=4096"
dd if=/lib/lilo/pmac/yaboot of=/dev/sda1 bs=4096
# Set 0x41 as the partition type of the first partition
echo A | dd of=/dev/sda bs=1 count=1 seek=450
# echo A | dd of=/dev/sda bs=1 count=1 seek=450
else
echo "there isn't yaboot bootloader"
fi