Description of problem: livecd-creator gets OSError Version-Release number of selected component (if applicable): livecd-tools-20.4-1.fc20.x86_64 How reproducible: Every time Steps to Reproduce: 1. Run livecd-creator -s -t temp --config=local.ks Actual results: After installing the rpm's, I get a number of diagnostics: "... Installing: man-pages ##################### [412/412] Installing: words ##################### [413/412] 1023 blocks [Errno 2] No such file or directory Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/openldap.confegEVLT') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x14f06f0>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/libuser.confr1M2if') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x14f0a50>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/login.defsQOS9ZP') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x14f0b70>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/nsswitch.conf4HTrEf') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x14f0c90>> ignored Error creating Live CD : Unable to run ['/usr/bin/firewall-offline-cmd', '--disabled']! [root@localhost createlive]# ls -l /usr/bin/firewall-offline-cmd -rwxr-xr-x. 1 root root 18865 Feb 5 12:03 /usr/bin/firewall-offline-cmd " Expected results: Successful livecd creation Additional info: My local kickstart file, local.ks, contains: "lang en_US.UTF-8 keyboard us timezone US/Eastern auth --useshadow --enablemd5 selinux --enforcing firewall --disabled part / --size 1024 repo --name=development --baseurl=file:/run/media/jones/2tp001data/repos/fedora-updates.d/rawhide/x86_64 %packages @standard %end " I use a local copy of the Fedora repository: "ls -lR /run/media/jones/2tp001data/repos/fedora-updates.d/rawhide/x86_64 /run/media/jones/2tp001data/repos/fedora-updates.d/rawhide/x86_64: total 4 lrwxrwxrwx. 1 jones jones 17 Mar 16 17:44 Packages -> ../../../rpmsptrs drwxrwxr-x. 2 jones jones 4096 Apr 10 08:07 repodata /run/media/jones/2tp001data/repos/fedora-updates.d/rawhide/x86_64/repodata: total 109240 -rw-rw-r--. 1 jones jones 6256116 Apr 10 05:41 06003b161a1679ec7e3b8eac1e31b0bdca16d20e9b88d86621a7c4339de7617d-other.xml.gz -rw-rw-r--. 1 jones jones 9572161 Apr 10 08:03 06568c8d2e03e7fada5b9f3ffd9425e0a39f68c1889f64cc48a03b606e3395bb-other.sqlite.bz2 -rw-rw-r--. 1 jones jones 20133367 Apr 10 08:07 076f22ae3f890e554175a24e9311bc87cf4f69249aa5f325e67d0102ceb4764c-primary.sqlite.bz2 -rw-rw-r--. 1 jones jones 402263 Apr 10 08:07 1420029921f35c9bbbd9a9b816f5cfc55a1439aa2804fb4272b8516a8b7f762c-comps-rawhide.xml.gz ... " And finally, my local rpms repository is like this: "ls -lR /run/media/jones/2tp001data/repos/fedora-updates.d/rawhide/x86_64/../../../rpmsptrs /run/media/jones/2tp001data/repos/fedora-updates.d/rawhide/x86_64/../../../rpmsptrs: total 0 lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 0 -> rpmspt lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 1 -> rpmspt ... lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 9 -> rpmspt lrwxrwxrwx. 1 jones jones 6 Mar 16 17:39 a -> rpmspt lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 b -> rpmspt .. lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 q -> rpmspt lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 r -> rpmspt lrwxrwxrwx. 1 jones jones 13 Mar 16 17:39 rpmspt -> ../../allrpms lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 s -> rpmspt lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 t -> rpmspt ... lrwxrwxrwx. 1 jones jones 6 Mar 16 17:41 z -> rpmspt "
Created attachment 886649 [details] script to demonstrate livecd-creator bug on fc20 I get similar results by running this script under fc20, using the first example in man livecd-creator. The actual kickstart file is in the log subdirectory. My version of livecd-creator is in livecd-tools-20.4-1.fc20.x86_64 .
Created attachment 886650 [details] typescript output of above attachment. contains cursor codes.
I can reproduce this by trying to compose a rawhide iso from f20 or rawhide, but not f20 from f20 (that runs into missing libselinux-utils and firewalld). It looks like this is coming from authconfig, so reassigning.
I don't think this is coming from a change in authconfig. Something must have changed with livecd-creator so it no longer allows authconfig to create files and directories in /var/lib/authconfig.
I don't think it is the creation that is failing, it looks like maybe the file vanishes before it is closed. It could be selinux related -- but I reproduced it with Permissive as well as Enforcing. Using the same version of livecd-creator with the f20 repository works fine, so it depends on the version of authconfig that is being installed.
Could it be the same as bug 1094297 ? Do you have policycoreutils installed?
That could be, I can't reproduce it with current rawhide and it is installing policycoreutils.
(In reply to Tomas Mraz from comment #6) > Could it be the same as bug 1094297 ? Do you have policycoreutils installed? I met the same problem with policycoreutils installed on my Fedora20. I guess this is not the same bug.
Not sure if it helps, but I've just had this happen on Scientific Linux with: Name : authconfig Arch : x86_64 Version : 6.1.12 Release : 19.el6 Size : 1.9 M Repo : installed From repo : sl I wasn't creating a livecd, but activating winbind authentication.
Seeing the same here on CentOS 7 when using 'realmd'. The 'authconfig' operations just fail horribly because the (non-)availability of 'getsebool' isn't handled properly. 'getsebool' is just executed blindly without checking in the first place, whether it is available at all. # /usr/bin/sh -c "/usr/sbin/authconfig --update --enablesssd --enablesssdauth --enablemkhomedir --nostart" Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/nsswitch.conf8M54fi') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x28f6930>> ignored sh: getsebool: command not found Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/system-auth-acFF9iRK') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x28f6930>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/postlogin-acxmholg') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x28f69c0>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/password-auth-actzy_nt') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x28f6ae0>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/fingerprint-auth-accA5azC') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x28f6c00>> ignored Exception OSError: (2, 'No such file or directory', '/var/lib/authconfig/last/smartcard-auth-acbpwrl7') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0x28f6d20>> ignored
that's intereseting because I have libselinux-utils installed on my system (that provides getsebool), but still had issues. Not seen that problem again, so perhaps an update has resolved it.
The policycoreuitls requires which then require libselinux-utils was added recently and will be fixed in centos-7.1
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.