Discussion:
Install on an entire disk without partitioning
Eduardo Bragatto
2017-02-20 18:14:35 UTC
Permalink
Hello,

First of all, my apologies if this questions has already been answered, but I couldn’t find a clear answer in the documentation or searching the list archives.

My goal is to install CentOS 6 and 7 on an entire disk, with no partitioning scheme (e.g. in /dev/xvda).

My first attempt was to use “part …. onpart=xvda”, like this:

zerombr
clearpart --drives=xvda --all --initlabel
part / --fstype ext3 --fsoptions=noatime --onpart=xvda

The installer actually formats /dev/xvda correctly:

│ Creating ext3 filesystem on /dev/xvda │


However, it fails right after that because it tries to read the first item from an empty list:

Entering debugger...
/usr/lib/anaconda/platform.py(640)bootloaderChoices()
-> ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
(Pdb) bl.drivelist
[]
(Pdb) ret
{'boot': ('xvda', 'First sector of boot partition')}


What’s the correct way to avoid partitioning entirely, and have the system installed into a whole device?


Kind regards
Eduardo Bragatto
Angus Clarke
2017-02-21 12:38:24 UTC
Permalink
As far as I know, LVM is the only way to use disks without partitioning
(and I still use partitions with LVM anyway - old habits die hard!) However
I doubt a boot partition will work under LVM. I'm a bit out of touch with
modern disk/boot architectures however ...

Regards
Angus
Post by Eduardo Bragatto
Hello,
First of all, my apologies if this questions has already been answered,
but I couldn’t find a clear answer in the documentation or searching the
list archives.
My goal is to install CentOS 6 and 7 on an entire disk, with no
partitioning scheme (e.g. in /dev/xvda).
zerombr
clearpart --drives=xvda --all --initlabel
part / --fstype ext3 --fsoptions=noatime --onpart=xvda
│ Creating ext3 filesystem on /dev/xvda │
However, it fails right after that because it tries to read the first item
Entering debugger...
/usr/lib/anaconda/platform.py(640)bootloaderChoices()
-> ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
(Pdb) bl.drivelist
[]
(Pdb) ret
{'boot': ('xvda', 'First sector of boot partition')}
What’s the correct way to avoid partitioning entirely, and have the system
installed into a whole device?
Kind regards
Eduardo Bragatto
_______________________________________________
Kickstart-list mailing list
https://www.redhat.com/mailman/listinfo/kickstart-list
Michael Mayer
2017-02-21 13:01:15 UTC
Permalink
_______________________________________________
Kickstart-list mailing list
Kickstart-***@redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list
Jacob Evans
2017-02-21 13:19:31 UTC
Permalink
I used this layout for lvm, you'll need a dedicated boot partition.
https://gist.github.com/JakeDEvans/908d9a75aa5fc24c9eee24f4912af9aa

Hope it helps.
-Jake


From: "Michael Mayer" <***@mayer.cx>
To: "Angus Clarke" <***@gmail.com>, "kickstart-list" <kickstart-***@redhat.com>
Sent: Tuesday, February 21, 2017 8:01:15 AM
Subject: Re: Install on an entire disk without partitioning



Not sure if this helpful (I have not tested that myself) - wondering if you could specify

bootloader --location=partition

to make it work ?

see https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html

On 21 February 2017 at 12:38 Angus Clarke <***@gmail.com> wrote:

As far as I know, LVM is the only way to use disks without partitioning (and I still use partitions with LVM anyway - old habits die hard!) However I doubt a boot partition will work under LVM. I'm a bit out of touch with modern disk/boot architectures however ...

Regards
Angus

On 20 February 2017 at 19:14, Eduardo Bragatto < [ mailto:***@bragatto.com | ***@bragatto.com ] > wrote:

BQ_BEGIN
Hello,

First of all, my apologies if this questions has already been answered, but I couldn’t find a clear answer in the documentation or searching the list archives.

My goal is to install CentOS 6 and 7 on an entire disk, with no partitioning scheme (e.g. in /dev/xvda).

My first attempt was to use “part 
. onpart=xvda”, like this:

zerombr
clearpart --drives=xvda --all --initlabel
part / --fstype ext3 --fsoptions=noatime --onpart=xvda

The installer actually formats /dev/xvda correctly:

│ Creating ext3 filesystem on /dev/xvda │


However, it fails right after that because it tries to read the first item from an empty list:

Entering debugger...
/usr/lib/anaconda/platform.py(640)bootloaderChoices()
-> ret["mbr"] = (bl.drivelist[0], N_("Master Boot Record (MBR)"))
(Pdb) bl.drivelist
[]
(Pdb) ret
{'boot': ('xvda', 'First sector of boot partition')}


What’s the correct way to avoid partitioning entirely, and have the system installed into a whole device?


Kind regards
Eduardo Bragatto


_______________________________________________
Kickstart-list mailing list
[ mailto:Kickstart-***@redhat.com | Kickstart-***@redhat.com ]
[ https://www.redhat.com/mailman/listinfo/kickstart-list | https://www.redhat.com/mailman/listinfo/kickstart-list ]



_______________________________________________
Kickstart-list mailing list
Kickstart-***@redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list
BQ_END

_______________________________________________
Kickstart-list mailing list
Kickstart-***@redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list

Loading...