Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261857 - sys-boot/grub fails to install if ROOT is specified and $ROOT/boot does not exists
Summary: sys-boot/grub fails to install if ROOT is specified and $ROOT/boot does not e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-09 13:13 UTC by Christoph Gysin
Modified: 2009-05-10 04:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
grub-create-boot-dir.patch (grub-create-boot-dir.patch,417 bytes, text/plain)
2009-03-09 13:14 UTC, Christoph Gysin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Gysin 2009-03-09 13:13:57 UTC
grub fails if ${ROOT}/boot does not exist:

# mkdir tmp
# USE=-* ROOT=tmp emerge -avt grub

... snipp ...

>>> Failed to install sys-boot/grub-0.97-r9 to /root/tmp/, Log file:

>>>  '/var/log/portage/sys-boot:grub-0.97-r9:20090309-130257.log'

 * Messages for package sys-boot/grub-0.97-r9 merged to /root/tmp/:

 * 
 * To avoid automounting and autoinstalling with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 * 
 * 
 * ERROR: sys-boot/grub-0.97-r9 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_postinst
 *             environment, line 2766:  Called setup_boot_dir '/root/tmp//boot'
 *             environment, line 2983:  Called die
 * The specific snippet of code:
 *       [[ ! -e ${dir} ]] && die "${dir} does not exist!";
 *  The die message:
 *   /root/tmp//boot does not exist!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sys-boot:grub-0.97-r9:20090309-130257.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-0.97-r9/temp/environment'.
 * 

 * Regenerating GNU info directory index...
 * Processed 3 info files.

I expect the ebuild to create the dir if it doesn't exist. Like it does for every other dir it is installing files into.

Please explain if this behaivor is intended.

Thanks
Comment 1 Christoph Gysin 2009-03-09 13:14:55 UTC
Created attachment 184452 [details]
grub-create-boot-dir.patch

Proposed patch to create dir instead of failing if ${ROOT}/boot doesn't exist.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-09 17:30:59 UTC
Reassigning to base-system herd.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-10 04:16:50 UTC
InCVS.