Re: [PATCH parted] Handle swap flag in msdos type labels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hans de Goede wrote:
> From: David Cantrell <dcantrell@xxxxxxxxxx>
>
> Original patch by David Cantrell <dcantrell@xxxxxxxxxx>, I
> (Hans de Goede <hdegoede@xxxxxxxxxx>) made the following changes:
> -msdos_partition_is_flag_available() should return 1 for swap flag
> -Only change the partition type to 82 when setting the swap flag
>  on dos labels, not when resetting it

Hans,

What is the motivation for this change?

The existing "set 1 swap on" functionality is documented to be
specific to MAC partition tables:

    `swap'
          (Mac) - this flag should be enabled if the partition is the
          swap device to be used by Linux.


AFAICS, it's not intended to be a general (partition-table-independent)
way to set the per- partition "type".  For an msdos partition table,
if you just want to set the type of a newly-created partition to swap(82),
use mkpart's file system type argument:

    parted -s $dev mkpart primary linux-swap 60s 100s

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux