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 631927 Details for
Bug 869171
KickstartValueError: The following problem occurred on line 4 of the kickstart file: Specified unpartitioned disk vda in partition command
[?]
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.
File: ks.cfg
ks.cfg (text/plain), 13.52 KB, created by
Jan ONDREJ
on 2012-10-23 08:02:58 UTC
(
hide
)
Description:
File: ks.cfg
Filename:
MIME Type:
Creator:
Jan ONDREJ
Created:
2012-10-23 08:02:58 UTC
Size:
13.52 KB
patch
obsolete
>#based on "pc" configuration >#accepted kernel parameters: ># part=root=4,vg=VGNAME,swap=4,var=20,home=max ># disks=vda,vdb ># pkgs=desktop,salpack ># ># System authorization information and root password >auth --useshadow --enablemd5 >rootpw --iscrypted $1$Nd.xn29E$ZyPRpRorSV06piZyARGxy/ ># System bootloader configuration >bootloader --append="" --location=mbr --timeout=1 ># Firewall configuration (ssh is enabled by default) >firewall --enabled ># Run the Setup Agent on first boot >firstboot --enable ># System keyboard >keyboard us ># System language >lang sk_SK.UTF-8 >#lang en_US.UTF-8 ># Installation logging level >#logging info ># Network information >network --bootproto=dhcp --onboot=on >#vnc --host=158.197.240.41 --port=5500 ># Reboot after installation >reboot ># SELinux configuration >selinux --permissive ># System timezone >timezone --utc Europe/Bratislava ># Install OS instead of upgrade >install ># Services >services --disabled=netfs --enabled=network ># iSCSI >#ignoredisk --interactive >#iscsiname iqn.2012-09.test >#iscsi --ipaddr=158.197.16.70 --target=iqn.2012-09.sk.upjs.ftp:fedora ># Disk partitioning information >#part / --bytes-per-inode=4096 --fstype="ext4" --grow --size=1 >%packages >dhclient >yum >yum-utils >openssh-clients >openssh-server >screen >wget >rsync >which >iptables >joe >mc >parted >-sendmail >%end > >%pre --interpreter /usr/bin/python ># SAL's fedora/centos kickstart script > >import os, sys, re, socket, urllib2 > >part_names = dict( > swap='swap', > boot='/boot', > var='/var', > home='/home', > tmp='/tmp', > www='/var/www', > backuppc='/var/lib/BackupPC', > mysql='/var/lib/mysql', > pgsql='/var/lib/pgsql' >) >sys.stdout = open('/tmp/salstar.ks', 'wt') >spare = 2 > ># check distribution (el6 or fc17) >distro, arch = os.popen('uname -r').read().strip().split('.')[-2:] >if distro.startswith("fc"): > biosboot = 2 >else: > biosboot = 0 >if arch.endswith('86'): > arch = "i386" > ># boot command line >cmd_line = {} >for cmd in open('/proc/cmdline').read().strip().split(' '): > arg = None > if '=' in cmd: > cmd, arg = cmd.split('=', 1) > cmd_line[cmd] = arg > >def disksize(*disks): > ds = [ > int(open('/sys/class/block/%s/size' % x).read().strip())/2048 > for x in disks > ] > print "# disksizes: %s = %s" % (disks, ds) > return min(ds) > >def size(s, disks=None, sum=0): > if s in ['', 'max']: > if disks is None: > return "1 --grow" > else: > print "# sum=%d kB" % sum > return disksize(*disks)-sum > if s.endswith('m') or s.endswith('M'): > return int(s[:-1]) > else: > return int(float(s.strip('gG'))*1024) > >class mk_raid: > cntr = -1 > def __init__(self, disks): > self.disks = disks > def add(self, s): > self.cntr += 1 > for i in 0, 1: > print "part raid.%d%d --size=%s --ondisk=%s" \ > % (self.cntr, i+1, s, self.disks[i]) > def add_vg(self, vg, s): > self.add(s) > print "raid pv.01 --level=1 --device=md%d raid.%d1 raid.%d2" \ > % (self.cntr, self.cntr, self.cntr) > print "volgroup %s pv.01" % vg > def add_part(self, mp, s, fstype='--fstype=ext4'): > self.add(s) > print "raid %s --level=1 --device=md%d %s raid.%d1 raid.%d2" \ > % (mp, self.cntr, fstype, self.cntr, self.cntr) > >def not_cdrom_or_lun(hd): > try: > media = open('/sys/block/%s/device/media' % hd, 'r').read().strip() > if media=='cdrom': > return False > except IOError: > pass > try: > model = open('/sys/block/%s/device/model' % hd, 'r').read().strip() > if model=='LUNZ': > return False > except IOError: > pass > return True > >def detect_disks(): > return [x for x in os.listdir('/sys/block') > if (x[0:2] in ['sd','vd','hd']) and not_cdrom_or_lun(x)] > >def initdisks(disks): > if 'zerombr' in cmd_line: > print "zerombr" > if disks: > print "clearpart --all --initlabel --drives=%s" % ','.join(disks) > else: > print "clearpart --all --initlabel" > >def autopartition(disks, parts): > if disks and disks.startswith("iscsi:"): > #print "ignoredisk --interactive" > print "iscsiname iqn.2012-09.test" > print "iscsi --ipaddr=%s --target=%s --user=%s --password=%s" \ > % tuple(disks[6:].split(";", 3)) > return > if not parts: > return > if disks: > print "ignoredisk --only-use=%s" % disks > disks = disks.split(',') > else: > disks = detect_disks() > parts = [x.split('=', 1) for x in parts.split(',')] > vg = None > if len(disks)==1: > # one disk partition scheme > disk0 = disks[0] > for key, value in parts: > if ':' in value: > fstype = "--fstype=%s" % value.split(':', 1)[1] > value = value.split(':', 1)[0] > elif key=='swap': > fstype = '' > else: > fstype = '--fstype=ext4' > if key=='vg': > vg = value > print "part pv.01 --ondisk=%s --size=1 --grow" % disk0 > print "volgroup %s pv.01" % vg > elif key=='root': > initdisks(disks) > if biosboot>0: > print "part biosboot --fstype=biosboot --ondisk=%s --size=%d" \ > % (disk0, biosboot) > print "part / --ondisk=%s %s --size=%d" \ > % (disk0, fstype, size(value)) > elif key in part_names: > if vg: > print "logvol %s --vgname=%s --size=%s --name=%s %s" \ > % (part_names[key], vg, size(value), key, fstype) > else: > print "part %s --ondisk=%s %s --size=%d" \ > % (part_names[key], disk0, fstype, size(value)) > elif len(disks)==2: > # raid 1 partition scheme > sum = spare # 1 > disk0 = disks[0] > disk1 = disks[1] > raid = mk_raid(disks) > for key, value in parts: > if ':' in value: > fstype = "--fstype=%s" %value.split(':', 1)[1] > value = value.split(':', 1)[0] > elif key=='swap': > fstype = '' > else: > fstype = '--fstype=ext4' > print "# key, value, fstype:", key, value, fstype > if key=='vg': > vg = value > # calculate pv size > #s = 0 > #for k, v in parts: > # if k=='vg': > # s = 1 > # elif s>0: > # if v.isdigit(): > # s += int(v)*1024 > # else: > # s += 1 > # add pv > # --grow disabled in F14 for raid partitions :-( > #raid.add_vg(vg, "%d --grow" % s) > print "# disk size: %d-%d" % (disksize(*disks), sum) > raid.add_vg(vg, "%d" % (disksize(*disks)-sum)) > elif key=='root': > initdisks(disks) > if biosboot>0: > print "part biosboot --fstype=biosboot --ondisk=%s --size=%d" \ > % (disk0, biosboot) > print "part biosboot --fstype=biosboot --ondisk=%s --size=%d" \ > % (disk1, biosboot) > sum += biosboot > s = size(value, disks, sum) > raid.add_part("/", s, fstype) > sum += s > elif key in part_names: > if vg: > print "logvol %s --vgname=%s --size=%s --name=%s %s" \ > % (part_names[key], vg, size(value), key, fstype) > else: > s = size(value, disks, sum) > raid.add_part(part_names[key], s, fstype) > sum += s > print "# sum=%d kB" % sum > >class repocfg_class: > fc = dict( > base = [ > 'url --url=%(mirror)s/fedora/linux/%(dir)s/%(ver)d/Fedora/%(arch)s/os/', > 'repo --name=Updates --baseurl=%(mirror)s/fedora/linux/updates/%(ver)d/%(arch)s/' > ], > other = [ > 'repo --name=Everything --baseurl=%(mirror)s/fedora/linux/%(dir)s/%(ver)d/Everything/%(arch)s/os/', > 'repo --name=Salstar --baseurl=http://www.salstar.sk/pub/fedora/%(ver)d/%(arch)s/' > ], > testing = [ > 'repo --name=Updates-testing --baseurl=%(mirror)s/fedora/linux/updates/testing/%(ver)d/%(arch)s/' > ] > ) > el = dict( > base = [ > 'url --url=%(mirror)s/centos/%(ver)d/os/%(arch)s/', > 'repo --name=Updates --baseurl=%(mirror)s/centos/%(ver)d/updates/%(arch)s/', > 'repo --name=EPEL --baseurl=%(mirror)s/mirrors/epel/%(ver)d/%(arch)s/' > ], > other = [ > 'repo --name=Salstar --baseurl=http://www.salstar.sk/pub/epel/%(ver)d/%(arch)s/' > ], > testing = [ > 'repo --name=EPEL-testing --baseurl=%(mirror)s/mirrors/epel/testing/%(ver)d/%(arch)s/' > ] > ) > all_repos = ('pkgs' in cmd_line) or ('packages' in cmd_line) > cmd_line_testing = 'testing' in cmd_line > cmd_line_repo = cmd_line.get('repo') > cmd_line_packages = cmd_line.get('pkgs') or cmd_line.get('packages') > def get(self, distro): > grps = getattr(self, distro) > ret = grps['base'] > if self.cmd_line_testing: > ret.extend(grps['testing']) > if self.all_repos: > ret.extend(grps['other']) > return ret > def repo_update(self, distro, version, arch): > for repo in self.get(distro): > if repo.startswith("url") and self.cmd_line_repo: > print "url --url=%s" % self.cmd_line_repo > else: > print repo % dict( > mirror="http://ftp.upjs.sk/pub", > dir="releases", > ver=version, > arch=arch > ) > def geturl(self, url): > if "://" not in url: > url = os.path.join(os.path.dirname(cmd_line['ks']), url) > return urllib2.urlopen(url).read() > def package_update(self, distro, version): > distro_packages = dict( > fc = ["gdisk"], > el = ["epel-release"] > ) > group_packages = dict( > desktop = 'desktop.pkgs' > ) > print "%packages --ignoremissing" > print "\n".join(distro_packages.get(distro)) > if self.cmd_line_packages: > for pkg in self.cmd_line_packages.split(','): > if pkg in group_packages: > print self.geturl(group_packages[pkg]) > else: > print pkg > print "%end" > >def lang(lang): > if not lang: > return > langs = dict( > en = "en_US", > sk = "sk_SK", > cs = "cs_CZ" > ) > if "_" not in lang and lang in langs: > lang = langs[lang] > if "." not in lang: > lang += ".UTF-8" > print "lang", lang > >if "text" in cmd_line: > print "text" >autopartition( > cmd_line.get('disk') or cmd_line.get('disks'), > cmd_line.get('part') >) >repocfg = repocfg_class() >repocfg.repo_update(distro[:2], int(distro[2:]), arch) >repocfg.package_update(distro[:2], int(distro[2:])) >lang(cmd_line.get('lang')) >%end > >%post --interpreter /bin/bash >cd /etc/yum.repos.d >#wget -q http://158.197.16.66/pub/yum/yum.repos.d/salstar.repo >if grep -q -E '^(CentOS|Red|Scientific)' /etc/redhat-release; then > distro="-el" >else > distro="-fedora" >fi >cat > /etc/yum.repos.d/salstar.repo << KSEOF >[salstar.sk] >name=Salstar.sk \$releasever - \$basearch - Base >#baseurl=http://ftp.upjs.sk/pub/users/sal/Fedora/\$releasever/ >mirrorlist=http://www.salstar.sk/download/mirrors/salstar$distro >gpgkey=http://www.salstar.sk/pub/sagator/SAGATOR-GPG-KEY >gpgcheck=1 >enabled=1 >metadata_expire=1 > >[salstar.sk-test] >name=Salstar.sk \$releasever - \$basearch - Testing >mirrorlist=http://www.salstar.sk/download/mirrors/salstar$distro-testing >gpgkey=http://www.salstar.sk/pub/sagator/SAGATOR-GPG-KEY >gpgcheck=1 >enabled=0 >metadata_expire=1 > >[salstar.sk-builder] >name=builder.salstar.sk >baseurl=http://builder.salstar.sk/local/\$releasever$distro/\$basearch/ >gpgkey=http://www.salstar.sk/pub/sagator/SAGATOR-GPG-KEY >gpgcheck=0 >enabled=0 >metadata_expire=1 >KSEOF >cd /etc/pki/rpm-gpg >#wget -q http://158.197.16.66/pub/sagator/SAGATOR-GPG-KEY >cat > /etc/pki/rpm-gpg/SAGATOR-GPG-KEY << KSEOF >-----BEGIN PGP PUBLIC KEY BLOCK----- >Version: GnuPG v1.4.6 (GNU/Linux) > >mQGiBEWSfqgRBADu/silyFvlgwCzsu8Ha/llSd4MidiYIeWO8vLszSJn6kVo+xbF >hDlj/UXHQVwp/Q6pqrrNxucJSFaE/qWi6KuZ4XqN2xWyUAjSCJ0BiUJyoTD9NOg3 >yXyzXVLRklHaeOUdNF7e376Vfwsgix1wsehBh66vtyX1znDfWPcqfAZkpwCgsw95 >2f/9qBYhCM61Nd/jFe6HbW0EANmlw/CIS+QNCQQPntXbL2rGD80VLXK6W+yIMuPu >bkSn1PJpeO4BBjOynVqAuW4bERm5gSPDxBqE5vD9Ef8pqsoUHRIVTyj1Z2I1JbXn >OjbUZmFcLdqVNNHNRu3Bkb8YLD3qdtG6CHG6CfowYXZfdaTVgyYIcLiStGNNKaXI >omJQA/9YFv2xvP82xykZvHqx0hnn/NXFrSn+9TJGdDKOo/6/6AA6BwXRBwjHG1x2 >1CCIbnTOmoDeBw5+hpVtLnACannT6VnNvZ+Zm+qoMBZ/E+2m6MkkywyP7oUIsxLp >7FnZHd/e6FGpgzup55mZboAgth/l4+w1ztF1aCGHu6ATsR3VWLQpSmFuIE9ORFJF >SiAoU0FHQVRPUikgPG9uZHJlampAc2Fsc3Rhci5zaz6IYAQTEQIAIAUCRZJ+qAIb >AwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEAiqUAZrgi/nW/QAoJfsGDX8h6WH >JqwZbPlWrR9FRP8ZAJ94pSLvMM6rfXlMbeOejfvFcdwc8w== >=R77L >-----END PGP PUBLIC KEY BLOCK----- >KSEOF >mkdir -p /root/.ssh >echo 'from="work.salstar.sk,158.197.240.41" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAou3n+SuHVsuM5QXAKnIKilPHnJdKm/KP31Ho2VahJIC7mK0+snbXZYXeQmnwYvqQaDVCl8p0ANMonbs189t+RdBZ86Yq6/boc7zhyrj3gqzflsjyGWp5Gfo2AGQ9pgW3JMHefHMMXqF2uB9pT7PRL873gGfMG1WE3W+loFpDYPgg5TQvDifDP+cnlEdT/30JROFBbJ6sJro5la+7vZT/Yd9JOyNSvjizSsqLyva/t1zhQ2Bb37xGJOgVoRc1Hj+fYe1+jaD2ebtGWWIykvfIb33tpoBg3KkN01rrniTiVD8t1yNPGxc9VecqJoK5QJOCZ6zpjeFtvmiZwdd9bgfznQ== ondrejj@work.salstar.sk' >> /root/.ssh/authorized_keys >#chkconfig network on >#chkconfig postfix on >if [ "$distro" = "fedora" ]; then > GRUB_MODULES="part_gpt part_msdos raid mdraid09 mdraid1x" > if [ -e /sys/block/vdb ]; then > GRUB_HD=/dev/vd > fi > if [ -e /sys/block/sdb ]; then > GRUB_HD=/dev/sd > fi > if [ "$GRUB_HD" ]; then > echo "Configuring grub2 on $GRUB_HD*" > /sbin/grub2-install --modules="$GRUB_MODULES" ${GRUB_HD}b > /sbin/grub2-install --modules="$GRUB_MODULES" ${GRUB_HD}a > echo "GRUB_PRELOAD_MODULES='$GRUB_MODULES'" >> /etc/default/grub > fi >> /root/kslog >else # distro=el > if [ -e /sys/block/vdb -o -e /sys/block/sdb ]; then > echo -e 'root (hd0,0)\nsetup (hd0)' \ > | grub --device-map=/boot/grub/device.map > echo -e 'root (hd1,0)\nsetup (hd1)' \ > | grub --device-map=/boot/grub/device.map > fi >fi >sync >%end > >%include /tmp/salstar.ks > >%packages --nobase >%end
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 869171
:
631917
|
631918
|
631919
|
631920
|
631921
|
631922
|
631923
|
631924
|
631925
|
631926
| 631927 |
631928
|
631929
|
631930
|
631931