Re: Install on an entire disk without partitioning

Angus Clarke <[email protected]> Tue, 21 Feb 2017 13:38:24 +0100
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <CAHAi=oUsGjC4gu=uUoctxkKJG_qXXbqHzUyf=ruM55YoKGP2_A@mail.gmail.com>
--===============0028193829221726846==
Content-Type: multipart/alternative; boundary=94eb2c094646f606f4054909a738

--94eb2c094646f606f4054909a738
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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 <[email protected]> wrote=
:

> Hello,
>
> 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 search=
ing 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 =E2=80=9Cpart =E2=80=A6. onpart=3Dxvda=E2=80=
=9D, like this:
>
> zerombr
> clearpart --drives=3Dxvda --all --initlabel
> part / --fstype ext3 --fsoptions=3Dnoatime --onpart=3Dxvda
>
> The installer actually formats /dev/xvda correctly:
>
>              =E2=94=82 Creating ext3 filesystem on /dev/xvda             =
 =E2=94=82
>
>
> However, it fails right after that because it tries to read the first ite=
m
> from an empty list:
>
> Entering debugger...
> > /usr/lib/anaconda/platform.py(640)bootloaderChoices()
> -> ret["mbr"] =3D (bl.drivelist[0], N_("Master Boot Record (MBR)"))
> (Pdb) bl.drivelist
> []
> (Pdb) ret
> {'boot': ('xvda', 'First sector of boot partition')}
>
>
> What=E2=80=99s the correct way to avoid partitioning entirely, and have t=
he system
> installed into a whole device?
>
>
> Kind regards
> Eduardo Bragatto
>
>
> _______________________________________________
> Kickstart-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/kickstart-list

--94eb2c094646f606f4054909a738
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>As far as I know, LVM is the only way to use dis=
ks without partitioning (and I still use partitions with LVM anyway - old h=
abits die hard!) However I doubt a boot partition will work under LVM. I&#3=
9;m a bit out of touch with modern disk/boot architectures however ...<br><=
br></div>Regards<br></div>Angus<br></div><div class=3D"gmail_extra"><br><di=
v class=3D"gmail_quote">On 20 February 2017 at 19:14, Eduardo Bragatto <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank"=
>[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_q=
uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
x">Hello,<br>
<br>
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.<br>
<br>
My goal is to install CentOS 6 and 7 on an entire disk, with no partitionin=
g 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 --initlabel<br>
part / --fstype ext3 --fsoptions=3Dnoatime --onpart=3Dxvda<br>
<br>
The installer actually formats /dev/xvda correctly:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=E2=94=82 Creating ext3 fil=
esystem on /dev/xvda=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=94=
=82<br>
<br>
<br>
However, it fails right after that because it tries to read the first item =
from an empty list:<br>
<br>
Entering debugger...<br>
&gt; /usr/lib/anaconda/platform.py(<wbr>640)bootloaderChoices()<br>
-&gt; ret[&quot;mbr&quot;] =3D (bl.drivelist[0], N_(&quot;Master Boot Recor=
d (MBR)&quot;))<br>
(Pdb) bl.drivelist<br>
[]<br>
(Pdb) ret<br>
{&#39;boot&#39;: (&#39;xvda&#39;, &#39;First sector of boot partition&#39;)=
}<br>
<br>
<br>
What=E2=80=99s the correct way to avoid partitioning entirely, and have the=
 system installed into a whole device?<br>
<br>
<br>
Kind regards<br>
Eduardo Bragatto<br>
<br>
<br>
______________________________<wbr>_________________<br>
Kickstart-list mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><=
br>
<a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=3D"n=
oreferrer" target=3D"_blank">https://www.redhat.com/<wbr>mailman/listinfo/k=
ickstart-<wbr>list</a></blockquote></div><br></div>

--94eb2c094646f606f4054909a738--


--===============0028193829221726846==
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
--===============0028193829221726846==--