Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 865495 Details for
Bug 1067425
creating partition in %pre in kickstart fails to recognise the disks
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
The script in %pre
file_1067425.txt (text/plain), 1.34 KB, created by
Arif Ali
on 2014-02-20 12:51:08 UTC
(
hide
)
Description:
The script in %pre
Filename:
MIME Type:
Creator:
Arif Ali
Created:
2014-02-20 12:51:08 UTC
Size:
1.34 KB
patch
obsolete
>#!/bin/bash > >partfile=/tmp/partitionfile >disks="sda sdb sdc sdd sde sdf sdg sdh" >i=0 >rm -rf ${partfile} >touch ${partfile} > >for disk in `echo ${disks}` >do > efipart=${i} > [[ ${i} -eq 0 ]] && efipart="" > > dd if=/dev/zero of=/dev/${disk} bs=512 count=1 > > parted -s /dev/${disk} mklabel gpt > > parted -s /dev/${disk} mkpart primary fat32 1MiB 100MiB > parted -s /dev/${disk} set 1 boot on > parted -s /dev/${disk} mkpart primary 100MiB 600MiB > parted -s /dev/${disk} set 2 raid on > parted -s /dev/${disk} mkpart primary 600MiB 51800MiB > parted -s /dev/${disk} set 3 raid on > parted -s /dev/${disk} mkpart primary 51800MiB 100% > >cat >> ${partfile} << EOF >part /boot/efi${efipart} --fstype=efi --onpart=/dev/${disk}1 >part raid.0${i} --onpart=/dev/${disk}2 >part raid.1${i} --onpart=/dev/${disk}3 >EOF > > (( i++ )) >done > >cat >> ${partfile} << EOF >raid /boot --fstype=ext4 --device=md0 --level=1 --spares=6 raid.00 raid.01 raid.02 raid.03 raid.04 raid.05 raid.06 raid.07 >raid pv.1 --fstype=ext4 --device=md1 --level=5 --spares=1 raid.10 raid.11 raid.12 raid.13 raid.14 raid.15 raid.16 raid.17 > >volgroup system --pesize=4096 pv.1 > >logvol / --name=root --vgname=system --size=20480 --fstype=ext4 >logvol swap --name=swap --vgname=system --size=8192 >logvol /var --name=var --vgname=system --size=40960 --fstype=ext4 >EOF
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1067425
: 865495 |
865496
|
865498
|
865503