after a netinstall, and selecting grub2 bootloader, I get an errors with the grub2 scriplet which failed tail from /root/drakx/install.log retrieving rpm files from medium "Core Release"... retrieved grub2-2.00-29.mga3.x86_64.rpm ...retrieving done installing grub2-2.00-29.mga3.x86_64.rpm from /mnt/var/cache/urpmi/rpms starting installing packages created transaction for installing on /mnt (remove=0, install=0, upgrade=1) %post(grub2-2.00-29.mga3.x86_64) scriptlet failed, exit status 1 grub2-2.00-29.mga3.x86_64
Created attachment 3535 [details] report.bug
(In reply to Manuel Hiebel from comment #1) > Created attachment 3535 [details] > report.bug Is there anything in /var/log/grub2_post.log ?
yep: Installation finished. No error reported. Generating grub.cfg ... Found linux image: /boot/vmlinuz-desktop Found initrd image: /boot/initrd-desktop.img Found linux image: /boot/vmlinuz-3.8.0-desktop-1.mga3 Found initrd image: /boot/initrd-3.8.0-desktop-1.mga3.img done cp: cannot stat '/boot/grub2/locale/en@quot.mo': No such file or directory
I can't reproduce this, but have updated version grub2-2.00-30.mga3 to hopefully avoid these messages. Please test the same way if possible. Thanks ;)
Why is that cp done in %post anyway? This is nonsense. This will left unpackaged files on uninstall! Do it in %install and just add it to %files. And use a hardlink instead of cp for saving space!
CC: (none) => thierry.vignaud
(In reply to Thierry Vignaud from comment #5) > Why is that cp done in %post anyway? Because the directory does not exist until %post is run. > This is nonsense. It was not the most elegant solution I admit. > This will left unpackaged files on uninstall! Yes the whole /boot/grub2/locale/ dir must be removed in %preun as it is created by grub2-install in %post > Do it in %install and just add it to %files. Yes I now realize that this is possible. All the locales are handled by find_lang, so linking the dir in %install is better since it requires no change to %files. > And use a hardlink instead of cp for saving space! I have used a symlink for the file in %datadir, and this does save some space, however the file is still copied to /boot/grub2/locales/en by grub2-install. Closing as fixed in grub2-2.00-31.mga3.src.rpm Thanks for your help, Barry
Status: NEW => RESOLVEDResolution: (none) => FIXED
(In reply to Barry Jackson from comment #4) > I can't reproduce this, but have updated version grub2-2.00-30.mga3 to > hopefully avoid these messages. > > Please test the same way if possible. Thanks ;) it's ok, thanks.
Source RPM: (none) => grub2