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.
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'..
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 :/
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.
Perhaps we should pay attention to fork with the same name https://github.com/slacka/WinUSB. Looks like it is fixed there.
*** Bug 610800 has been marked as a duplicate of this bug. ***
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.
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.
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
Created attachment 506912 [details] ebuild
Do you want to proxy maintain it? https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
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.
I think it should be dosftools in depends also
we have sys-boot/woeusb in the tree now
winusb removed now.