Re: Install on an entire disk without partitioning

Jacob Evans <[email protected]> Tue, 21 Feb 2017 08:19:31 -0500 (EST)
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
------=_Part_3436_495555171.1487683171528
Content-Type: multipart/alternative; 
	boundary="=_822f1e38-2b8a-4bfc-8402-576b07933882"

--=_822f1e38-2b8a-4bfc-8402-576b07933882
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

I used this layout for lvm, you'll need a dedicated boot partition.=20
https://gist.github.com/JakeDEvans/908d9a75aa5fc24c9eee24f4912af9aa=20

Hope it helps.=20
-Jake=20


From: "Michael Mayer" <[email protected]>=20
To: "Angus Clarke" <[email protected]>, "kickstart-list" <kickstart-li=
[email protected]>=20
Sent: Tuesday, February 21, 2017 8:01:15 AM=20
Subject: Re: Install on an entire disk without partitioning=20



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

bootloader --location=3Dpartition=20

to make it work ?=20

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

On 21 February 2017 at 12:38 Angus Clarke <[email protected]> wrote:=
=20

As far as I know, LVM is the only way to use disks without partitioning (an=
d 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 mod=
ern disk/boot architectures however ...=20

Regards=20
Angus=20

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

BQ_BEGIN
Hello,=20

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

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

My first attempt was to use =E2=80=9Cpart =E2=80=A6. onpart=3Dxvda=E2=80=9D=
, like this:=20

zerombr=20
clearpart --drives=3Dxvda --all --initlabel=20
part / --fstype ext3 --fsoptions=3Dnoatime --onpart=3Dxvda=20

The installer actually formats /dev/xvda correctly:=20

=E2=94=82 Creating ext3 filesystem on /dev/xvda =E2=94=82=20


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

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


What=E2=80=99s the correct way to avoid partitioning entirely, and have the=
 system installed into a whole device?=20


Kind regards=20
Eduardo Bragatto=20


_______________________________________________=20
Kickstart-list mailing list=20
[ mailto:[email protected] | [email protected] ]=20
[ https://www.redhat.com/mailman/listinfo/kickstart-list | https://www.redh=
at.com/mailman/listinfo/kickstart-list ]=20



_______________________________________________=20
Kickstart-list mailing list=20
[email protected]=20
https://www.redhat.com/mailman/listinfo/kickstart-list=20
BQ_END

_______________________________________________=20
Kickstart-list mailing list=20
[email protected]=20
https://www.redhat.com/mailman/listinfo/kickstart-list=20


--=_822f1e38-2b8a-4bfc-8402-576b07933882
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: arial, helvetica, sans-serif; font-s=
ize: 12pt; color: #000000"><div style=3D"font-family: arial, helvetica, san=
s-serif; font-size: 12pt; color: #000000;" data-mce-style=3D"font-family: a=
rial, helvetica, sans-serif; font-size: 12pt; color: #000000;">I used this =
layout for lvm, you'll need a dedicated boot partition.</div><div>https://g=
ist.github.com/JakeDEvans/908d9a75aa5fc24c9eee24f4912af9aa</div><div><br da=
ta-mce-bogus=3D"1"></div><div>Hope it helps.</div><div>-Jake<br><br><hr id=
=3D"zwchr" data-marker=3D"__DIVIDER__" style=3D"color: #000000; font-family=
: arial, helvetica, sans-serif; font-size: 12pt;" data-mce-style=3D"color: =
#000000; font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div =
data-marker=3D"__HEADERS__" style=3D"color: #000000; font-family: arial, he=
lvetica, sans-serif; font-size: 12pt;" data-mce-style=3D"color: #000000; fo=
nt-family: arial, helvetica, sans-serif; font-size: 12pt;"><b>From: </b>"Mi=
chael Mayer" &lt;[email protected]&gt;<br><b>To: </b>"Angus Clarke" &lt;angu=
[email protected]&gt;, "kickstart-list" &lt;[email protected]&gt;<=
br><b>Sent: </b>Tuesday, February 21, 2017 8:01:15 AM<br><b>Subject: </b>Re=
: Install on an entire disk without partitioning<br></div><br><div data-mar=
ker=3D"__QUOTED_TEXT__" style=3D"color: #000000; font-family: arial, helvet=
ica, sans-serif; font-size: 12pt;" data-mce-style=3D"color: #000000; font-f=
amily: arial, helvetica, sans-serif; font-size: 12pt;"><p>Not sure if this =
helpful (I have not tested that myself) - wondering if you could specify</p=
><p>bootloader --location=3Dpartition&nbsp;</p><p>to make it work ?&nbsp;</=
p><p>see https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_L=
inux/7/html/Installation_Guide/sect-kickstart-syntax.html</p><blockquote>On=
 21 February 2017 at 12:38 Angus Clarke &lt;[email protected]&gt; wrot=
e:<br><br><div dir=3D"ltr"><div><div>As far as I know, LVM is the only way =
to use disks without partitioning (and I still use partitions with LVM anyw=
ay - 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 ..=
.<br><br></div>Regards<br></div>Angus<br></div><div class=3D"ox-2faff21410-=
gmail_extra"><br><div class=3D"ox-2faff21410-gmail_quote">On 20 February 20=
17 at 19:14, Eduardo Bragatto &lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt; wrote:<br><blockquote>Hello,<=
br> <br> First of all, my apologies if this questions has already been answ=
ered, but I couldn=E2=80=99t find a clear answer in the documentation or se=
arching the list archives.<br> <br> My goal is to install CentOS 6 and 7 on=
 an entire disk, with no partitioning scheme (e.g. in /dev/xvda).<br> <br> =
My first attempt was to use =E2=80=9Cpart =E2=80=A6. onpart=3Dxvda=E2=80=9D=
, like this:<br> <br> zerombr<br> clearpart --drives=3Dxvda --all --initlab=
el<br> part / --fstype ext3 --fsoptions=3Dnoatime --onpart=3Dxvda<br> <br> =
The installer actually formats /dev/xvda correctly:<br> <br> &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=E2=94=82 Creating ext3 filesystem on /de=
v/xvda&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =E2=94=82<br> <br> <=
br> However, it fails right after that because it tries to read the first i=
tem from an empty list:<br> <br> Entering debugger...<br> &gt; /usr/lib/ana=
conda/platform.py(640)bootloaderChoices()<br> -&gt; ret["mbr"] =3D (bl.driv=
elist[0], N_("Master Boot Record (MBR)"))<br> (Pdb) bl.drivelist<br> []<br>=
 (Pdb) ret<br> {'boot': ('xvda', 'First sector of boot partition')}<br> <br=
> <br> What=E2=80=99s the correct way to avoid partitioning entirely, and h=
ave the system installed into a whole device?<br> <br> <br> Kind regards<br=
> Eduardo Bragatto<br> <br> <br> __________________________________________=
_____<br> Kickstart-list mailing list<br> <a href=3D"mailto:Kickstart-list@=
redhat.com" target=3D"_blank">[email protected]</a><br> <a href=3D"=
https://www.redhat.com/mailman/listinfo/kickstart-list" target=3D"_blank">h=
ttps://www.redhat.com/mailman/listinfo/kickstart-list</a></blockquote></div=
><br></div>_______________________________________________<br>Kickstart-lis=
t mailing list<br>[email protected]<br>https://www.redhat.com/mailm=
an/listinfo/kickstart-list</blockquote>
=20

<br>_______________________________________________<br>Kickstart-list maili=
ng list<br>[email protected]<br>https://www.redhat.com/mailman/list=
info/kickstart-list</div></div><br></div></body></html>
--=_822f1e38-2b8a-4bfc-8402-576b07933882--

------=_Part_3436_495555171.1487683171528
Content-Type: text/directory; name="Evans, Jacob.vcf"
Content-Disposition: attachment; filename="Evans, Jacob.vcf"
Content-Transfer-Encoding: base64

QkVHSU46VkNBUkQNClZFUlNJT046My4wDQpGTjpFdmFuc1wsIEphY29iDQpOOkV2YW5zO0phY29i
Ozs7DQpBRFI7VFlQRT1ob21lLHBvc3RhbCxwYXJjZWw6Ozs7SGFycmlzYnVyZztQQTsxNzExMjtV
U0ENClRFTDtUWVBFPWNlbGwsdm9pY2U6NzE3LTQxNy04MzI0DQpURUw7VFlQRT13b3JrLHZvaWNl
OjcxNy00MTctODM0NA0KRU1BSUw7VFlQRT1pbnRlcm5ldDplbWFpbEBqYWNvYmRldmFucy5jb20N
ClVSTDtUWVBFPXdvcms6aHR0cDovL3d3dy5qYWNvYmRldmFucy5jb20NClVSTDtUWVBFPXdvcms6
aHR0cDovL2xpbmtlZGluLmphY29iZGV2YW5zLmNvbQ0KT1JHOkphY29iIEQgRXZhbnNcLCBDbG91
ZCBDb25zdWx0YW50DQpUSVRMRTpPd25lcg0KUkVWOjIwMTYtMDEtMjBUMTA6MDg6NTBaDQpVSUQ6
MzAzNGFlODEtZjI1NS00YjNjLWFmZjUtMmRjNzM2MTRiYzc0OjY0MDgyDQpFTkQ6VkNBUkQNCg==

------=_Part_3436_495555171.1487683171528
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list
------=_Part_3436_495555171.1487683171528--