Bug 751449
Summary: | kickstart can't write to a file in %pre section | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew Gillis <andrew> | ||||||||||||||||
Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||||||||||||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||
Severity: | high | Docs Contact: | |||||||||||||||||
Priority: | unspecified | ||||||||||||||||||
Version: | 16 | CC: | anaconda-maint-list, jonathan, vanmeeuwen+fedora | ||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||
Target Release: | --- | ||||||||||||||||||
Hardware: | i686 | ||||||||||||||||||
OS: | Linux | ||||||||||||||||||
Whiteboard: | |||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||
Last Closed: | 2011-11-07 18:13:01 UTC | Type: | --- | ||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||
Embargoed: | |||||||||||||||||||
Attachments: |
|
Please include all the /tmp/*log files as individual text/plain files. Created attachment 532041 [details]
anaconda.log
Created attachment 532042 [details]
ifcfg.log
Created attachment 532043 [details]
program.log
Created attachment 532044 [details]
storage.log
Created attachment 532045 [details]
WpZvqV-ks.cfg
This is the kickstart file from /tmp
I added all the log files and the ks.cfg files from /tmp to this ticket. As an additional data point I also noticed that even if I don't use the include and just hard code everything I still get the same error if the drives already have a RAID partition on them. The system installs fine if the drives are blank. I always get the error if I use and include file so this seems to be the best way to reproduce this error. Could you also add syslog? Looks like it had trouble notifying the kernel about partition changes. Created attachment 532104 [details]
syslog
OK I attached it. *** This bug has been marked as a duplicate of bug 729640 *** |
Created attachment 531830 [details] error Description of problem: I'm trying to build a system using a kickstart file. I use the %pre section to create a file then %include it in the kickstart file later. Not matter what I write to a file I get the attached anaconda error. I don't get any errors if I don't write to a file in %pre How reproducible: Use this kickstart that writes to a/tmp/include-parts lang en_US.UTF-8 keyboard us authconfig --useshadow --enablemd5 firewall --disabled firstboot --disable logging --level=info network --bootproto=dhcp --device=eth0 --onboot=on selinux --disabled skipx cdrom reboot install text timezone America/New_York rootpw vortexbox #Partition clearing information zerombr clearpart --all --initlabel bootloader --location=mbr --driveorder=sda --append="rhgb quiet" part biosboot --fstype=biosboot --size=1 %include /tmp/include-parts raid /boot --level=1 --device=md0 --fstype=ext4 raid.01 raid.02 raid pv.01 --level=1 --device=md1 raid.11 raid.12 volgroup VolGroup --pesize=32768 pv.01 logvol swap --fstype=swap --name=lv_swap --vgname=VolGroup --size=512 logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup --size=20000 logvol /storage --fstype=ext4 --name=lv_storage --vgname=VolGroup --size=1024 --grow # Pre installation %pre #!/bin/bash drive_size=$(cat /sys/class/block/sda/size)/2048 boot_size=500 lvmsize=$((drive_size - boot_size - 1 - 3)) cat >>/tmp/include-parts<<STOP part raid.01 --size=$boot_size --ondisk=sda --asprimary part raid.02 --size=$boot_size --ondisk=sdb --asprimary part raid.11 --size=$lvmsize --ondisk=sda part raid.12 --size=$lvmsize --ondisk=sdb STOP %end # Packages --excludedocs --instLangs=en %packages @core @base %end # Post section %post eject %end