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

RE: --asprimary

If --onprimary fails, use a %pre section, and use fdisk with a <<EOF style
document to create that first partition.  I'm having to do this on IA-64 at
present to handle the EFI partition.  I'd entered a bug report about the
--asprimary, but haven't looked at it's status in a long time, it may be
fixed by now.

# I know I've already created an EFI partition before starting, I just need
to change
# the type.  fdisk could do all the work here...

# Change the EFI partition from type 0xef to type 0x6
mknod /dev/sda
mknod /dev/sda1
fdisk /dev/sda << EOF

# Format the EFI partition
mkdosfs /dev/sda1
# End of %pre

Then I have:
zerombr yes
clearpart --linux
part /boot/efi --size 100	--ondisk sda --type 6 --onpart sda1


-----Original Message-----
From: Jeremy Katz [mailto:katzj linuxpower org]
Sent: Thursday, November 30, 2000 1:40 PM
To: kickstart-list redhat com
Subject: Re: --asprimary

On Thursday, November 30 2000, Seth Vidal said:

> I'm trying to do a kickstart so it allocates 2gig to a windows partition
> as hda1.
> so I have this in my ks.cfg
> part /mnt/win --size 2000 --asprimary 1 --type=6
> part / --size 200
> part /mnt/arch --size 6000 --grow
> part swap --size 64
> if I have any number after --asprimary it errors out with:
> ValueError: partition command requires one anonymous argument.

Try using --onprimary=1 instead 



Jeremy Katz
katzj linuxpower org	| jlkatz eos ncsu edu
http://linuxpower.org	| Developer, NCSU Realm Kit for Red Hat Linux
GPG fingerprint: 367E 8B6B 5E57 2BDB 972A 4D73 C83C B4E8 89FE 392D

The number of UNIX installations has grown to 10, with more expected.
	-- The Unix Programmer's Manual, 2nd Edition, June 1972

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