Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557970 - sys-boot/winusb fails at grub2-install
Summary: sys-boot/winusb fails at grub2-install
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
: 610800 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-16 22:53 UTC by Lara Maia
Modified: 2018-09-29 10:12 UTC (History)
6 users (show)

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


Attachments
ebuild (woeusb-9999.ebuild,791 bytes, text/plain)
2017-11-28 10:55 UTC, blopsalot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lara Maia 2015-08-16 22:53:22 UTC
When I run winusb I see this error:

grub2-install: erro: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.

This is because I don't use grub and don't have a variable GRUB_PLATFORMS in make.conf. This must me reported to users when the package is installed or fixed in another way.
Comment 1 Andrew Petelin 2016-12-06 15:44:50 UTC
Also, grub2-* utils were renamed to grub-*, so there is no more grub2-install:

# winusb -v --format windows.iso /dev/sdc
Formating device...
Mounting...
mount: /dev/loop0 is write-protected, mounting read-only
Copying...
Installing grub...
/usr/sbin/winusb: line 402: grub2-install: command not found
Error occured !
Syncing...
Cleaning...
Umounting and removing '/media/winusb_iso_1481038030_10691'...
Umounting and removing '/media/winusb_target_1481038030_10691'..
Comment 2 Pacho Ramos gentoo-dev 2016-12-06 16:42:26 UTC
I guess this needs to RDEPEND on sys-boot/grub[grub_platforms_efi-64?,multislot=] for running the sed pointing to grub or grub2 depending on that then :/
Comment 3 David Zaslavsky 2016-12-23 23:10:03 UTC
I had the same problem with "grub2-install: command not found", although is that really what this bug report is supposed to be about? In any case, making the sed command in the winusb ebuild conditional on grub's multislot USE flag seems like it should be a straightforward change.
Comment 4 juneau_ 2017-02-02 15:27:01 UTC
Perhaps we should pay attention to fork with the same name https://github.com/slacka/WinUSB. Looks like it is fixed there.
Comment 5 Brian Evans (RETIRED) gentoo-dev 2017-02-24 15:48:28 UTC
*** Bug 610800 has been marked as a duplicate of this bug. ***
Comment 6 Tim Mohlmann 2017-09-02 11:57:56 UTC
I would like to confirm bug also.
/usr/sbin/grub2-install is now /usr/sbin/grub-install in recent grub versions.

Possible workaround:
/usr/sbin/winusb is just a bash script. As superuser, open the scrip and go down to line 402. Change grub2-install to grub-install, save and exit.
Comment 7 Lara Maia 2017-09-02 19:08:30 UTC
We are talking about two different bugs here:

1) winusb fails when grub is not installed (portage don't link or report grub as dependence for it).

2) /usr/sbin/grub2-install is not /usr/sbin/grub-install and winusb is looking for old path.
Comment 8 blopsalot 2017-11-28 02:06:33 UTC
sys-boot/winusb is abandonware, it has been forked and is now called WoeUSB.

https://github.com/slacka/WoeUSB/

I have a functional ebuild ready, although it may still need improvement. I propose sys-boot/winusb be replaced with woeusb. 

My ebuild is along same lines of previous winusb. WoeUSB is only a shell script, calling grub, part, etc to do the work. So considering that these must be run as root and simplicity of command line, I did not bother to configure the GUI portion of the program.

https://github.com/blopsalot/blop-overlay/blob/master/sys-boot/woeusb/woeusb-9999.ebuild

Paul
Comment 9 blopsalot 2017-11-28 10:55:33 UTC
Created attachment 506912 [details]
ebuild
Comment 10 Pacho Ramos gentoo-dev 2017-11-28 19:31:32 UTC
Do you want to proxy maintain it?
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 11 blopsalot 2017-11-29 01:38:56 UTC
Yes, now that I'm finished fighting with the github qa bot:) Upstream is responsive and I use it often enough. As noted, I will not be able to maintain the gui, it wasn't built previously with winusb though either.
Comment 12 juneau_ 2018-02-11 01:30:53 UTC
I think it should be dosftools in depends also
Comment 13 Pacho Ramos gentoo-dev 2018-06-20 14:22:09 UTC
we have sys-boot/woeusb in the tree now
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-29 10:12:01 UTC
winusb removed now.