While creating a Rawhide live image, the installation of the 'lockdev' package fails with this error: Installing: lockdev ################### [ 657/1214] error: unpacking of archive failed on file /var/lock/lockdev: cpio: mkdir error: lockdev-1.0.4-0.7.20111007git.fc20.x86_64: install failed This usually indicates some kind of problem in the package's scriptlets, I haven't yet looked at the spec to see if I can see what it is.
This is connected to the tmpfs on /run/lock feature ... Previously, it was handled more gently in filesystem package - however packages should not have the files in temporary location in the payload - the file ownership should be done via ghosted file.. Systemd will automatically create them, if the package has correct systemd unit file - and for the time until the first reboot, it may be covered by the %post scriptlet in the package.
Thanks, should be fixed with http://pkgs.fedoraproject.org/cgit/lockdev.git/commit/?id=f0b3e10d29f1cc07a789e802b81087aaba97af2e
I have encountered this bug during a recent build of a F19 live remix: Installazi: lockdev ################### [ 655/1222] errore: estrazione archivio fallita sul file /var/lock/lockdev: cpio: mkdir errore: lockdev-1.0.4-0.7.20111007git.fc19.x86_64: installa fallito Updates repo was enabled. Need to file a new bug?
error: unpacking of archive failed on file /var/lock/lockdev: cpio: mkdir error: lockdev-1.0.4-0.7.20111007git.fc19.i686: install failed
lockdev-1.0.4-0.8.20111007git.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/lockdev-1.0.4-0.8.20111007git.fc19
Now there is a different problem: Installazi: lockdev ################### [ 647/1215]mkdir: impossibile creare la directory "/var/lock": File già esistente chown: impossibile accedere a "/var/lock/lockdev": File o directory non esistente avvertimento: scriptlet %post(lockdev-1.0.4-0.8.20111007git.fc19.x86_64) fallita, uscita con stato 1 Installazi: libgphoto2 ################### [ 648/1215] Installazi: iputils ################### [ 649/1215] Installazi: usbmuxd ################### [ 650/1215] Installazi: libimobiledevice ################### [ 651/1215] Installazi: ppp ################### [ 652/1215]mkdir: impossibile creare la directory "/var/lock": File già esistente It seems closely related to ppp problem, see #980100.
(In reply to Massimiliano from comment #6) > mkdir: impossibile creare la directory "/var/lock": File già esistente That's strange, we use 'mkdir -p /var/lock/lockdev/' which should not error if the directory exists and it should try to create /var/lock/ if it does not exist. But I've no idea why it tried creating /var/lock/ which had already existed (if Google Translator is right). > It seems closely related to ppp problem, see #980100. I can do the same change as in http://pkgs.fedoraproject.org/cgit/ppp.git/commit/?id=0d4a41fcacdcb8f324a7a541c150877b6374efcb but it'd just silence the error I don't understand.
lockdev-1.0.4-0.8.20111007git.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
The error is still present in today's build: Installazi: lockdev ################### [ 615/1211]mkdir: impossibile creare la directory "/var/lock": File già esistente chown: impossibile accedere a "/var/lock/lockdev": File o directory non esistente avvertimento: scriptlet %post(lockdev-1.0.4-0.8.20111007git.fc19.x86_64) fallita, uscita con stato 1 I suspect the script is trying to use mkdir against a broken symlink. In fact /var/lock is not a "real" directory, but only a symlink to ../run/lock . If I run this (assuming that nodir doesn't exists in the home dir): $ cd $ ln -s nodir brokenlink $ mkdir -p ~/brokenlink/newdir mkdir: impossibile creare la directory "/home/massi/brokenlink": File già esistente then I obtain the same error of the build. Maybe the following link can help: https://fedoraproject.org/wiki/Packaging:Tmpfiles.d
(In reply to Massimiliano from comment #9) > $ ln -s nodir brokenlink > $ mkdir -p ~/brokenlink/newdir That does the trick, thanks ! Then, there's probably nothing more we can do except silencing the error as has ppp already done.
lockdev-1.0.4-0.10.20111007git.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/lockdev-1.0.4-0.10.20111007git.fc19
This seems a side effect of running the script in the chroot environment of livecd-creator. The tmpfiles.d mechanism can handle properly the creation of directories during system startup, so can the script be removed safely?
It was supposed to cover the time until first reboot per comment #1, but given that it fails in this case anyway it seems to be useless and can be removed indeed.
Package lockdev-1.0.4-0.11.20111007git.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing lockdev-1.0.4-0.11.20111007git.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-15309/lockdev-1.0.4-0.11.20111007git.fc19 then log in and leave karma (feedback).
The build process doesn't show errors anymore. In my live remix: # rpm -q lockdev lockdev-1.0.4-0.11.20111007git.fc19.x86_64 # ls -l /var/lock/ totale 0 drwx------. 2 root root 60 28 ago 23.27 iscsi drwxrwxr-x. 2 root lock 40 28 ago 23.27 lockdev drwx------. 2 root root 40 28 ago 23.27 lvm drwxr-xr-x. 2 root root 40 28 ago 23.27 ppp However I'm not able to test lockdev functionality.
lockdev-1.0.4-0.11.20111007git.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.