Request for a feature in kickstart/anaconda

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

 



> I'd like to be able to make a partition of a certain size, a certain type
> and on a certain partition.

You can, using a %pre section and fdisk in there.  Use a "here document"
like so:

%post
....

%pre
fdisk /dev/sda << EOF
o
n
p
1
1
+100M
t
1
ef
w
EOF

(This is just an example, not tried, but I do it all the time with 7.0).

Then in your partition section, the partition already exists, --onpart does
what you want.

Thanks,
Matt Domsch
Dell Enterprise Systems Group
Linux Development Team






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux