Why was the swap partition allocated on the last partition of the disk with Red Hat Enterprise Linux 7 kickstart installation

Solution Unverified - Updated -

Issue

  • I installed Red Hat Enterprise Linux 7 on IBM Power server with the following partitioning scheme in kickstart file.
part prepboot --asprimary --fstype="PReP" --ondisk=disk/by-id/dm-uuid-mpath-xxxxxxxxxxxxxxxxxxx --size=4
part /boot --asprimary --fstype="ext2" --ondisk=disk/by-id/dm-uuid-mpath-xxxxxxxxxxxxxxxxxxx --size=512 --label=boot
part swap --asprimary --fstype="swap" --ondisk=disk/by-id/dm-uuid-mpath-xxxxxxxxxxxxxxxxxxx --size=8192
part pv.1 --asprimary --fstype="lvmpv" --ondisk=disk/by-id/dm-uuid-mpath-xxxxxxxxxxxxxxxxxxx --size=32251
  • The installation completed successfully, but the swap partition was allocated on the last partition of the disk.
/dev/mapper/mpatha1   *        2048       10239        4096   41  PPC PReP Boot
/dev/mapper/mpatha2           10240     1058815      524288   83  Linux
/dev/mapper/mpatha3         1058816    67108863    33025024   8e  Linux LVM
/dev/mapper/mpatha4        67108864    83886079     8388608   82  Linux swap / Solaris
  • Can we make it allocate the swap partition in the 3rd partition of the disk?

Environment

Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content