Bug 9148 - netinstall: %post(grub2-2.00-29.mga3.x86_64) scriptlet failed, exit status 1
Summary: netinstall: %post(grub2-2.00-29.mga3.x86_64) scriptlet failed, exit status 1
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Barry Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 416
  Show dependency treegraph
 
Reported: 2013-02-21 13:17 CET by Manuel Hiebel
Modified: 2013-02-23 20:47 CET (History)
1 user (show)

See Also:
Source RPM: grub2
CVE:
Status comment:


Attachments
report.bug (181.32 KB, application/x-xz)
2013-02-21 13:23 CET, Manuel Hiebel
Details

Description Manuel Hiebel 2013-02-21 13:17:57 CET
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
Comment 1 Manuel Hiebel 2013-02-21 13:23:26 CET
Created attachment 3535 [details]
report.bug
Comment 2 Barry Jackson 2013-02-22 10:23:29 CET
(In reply to Manuel Hiebel from comment #1)
> Created attachment 3535 [details]
> report.bug

Is there anything in /var/log/grub2_post.log ?
Comment 3 Manuel Hiebel 2013-02-22 15:30:30 CET
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
Comment 4 Barry Jackson 2013-02-22 23:49:53 CET
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 ;)
Comment 5 Thierry Vignaud 2013-02-23 10:28:24 CET
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

Comment 6 Barry Jackson 2013-02-23 15:19:47 CET
(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 => RESOLVED
Resolution: (none) => FIXED

Comment 7 Manuel Hiebel 2013-02-23 20:47:34 CET
(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


Note You need to log in before you can comment on or make changes to this bug.