Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black screen when booting from ISO #44

Open
cmonty14 opened this issue Sep 23, 2020 · 3 comments
Open

Black screen when booting from ISO #44

cmonty14 opened this issue Sep 23, 2020 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cmonty14
Copy link

Hi,
I'm facing an issue when booting from ISO: the screen remains black.

This issue is well described here and the following solution is provided:
Add the following '????.modeset=0' parameter at the end of the long grub command line.

Now, where should I add this line in the multibootusb setup?
Should I modifiy file boot/grub/mbusb.d/archlinux.d/generic64.cfg and enter it here:
linux (loop)/arch/boot/x86_64/vmlinuz $bootoptions nouveau.modeset=0
Please advise.

THX

@hackerncoder
Copy link
Owner

I think it would be better if you added it in bootoptions=""

@hackerncoder
Copy link
Owner

I was thinking about whether adding a menu entry (or something else) that allowed you to boot any ISO with an extra boot option would be possible, anyone that knows, please advice.

@hackerncoder hackerncoder added enhancement New feature or request help wanted Extra attention is needed labels Oct 13, 2020
@petsam
Copy link

petsam commented Jan 7, 2021

I think it would be better if you added it in bootoptions=""

Before bootoptions="" is the proper place.

I was thinking about whether adding a menu entry (or something else) that allowed you to boot any ISO with an extra boot option would be possible, anyone that knows, please advice.

It is possible to create multiple entries in one config file, cloning one and editing to a separate combination of kernel parameters.
For example:
I created this config for Garuda Linux, with different options for each scenario of video/gpu options. I have not tested all of them, since I only have two PCs 😄 but I have booted successfully latest and month old Garuda ISOs.

for isofile in $isopath/garuda-*.iso; do
  if [ -e "$isofile" ]; then
    regexp --set=isoname "$isopath/(.*)" "$isofile"
    submenu "$isoname ->" "$isofile" {
      iso_path="$2"
      loopback loop "$iso_path"
      probe --label --set=cd_label (loop)
      menuentry "Start Garuda Linux" {
        bootoptions="img_dev=$imgdevpath img_loop=$iso_path earlymodules=loop misobasedir=garuda misolabel=$cd_label nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 logo.nologo overlay=free quiet  showopts"
        linux (loop)/boot/vmlinuz-* $bootoptions
        initrd (loop)/boot/initramfs-*.img
      }
      menuentry "Start Garuda Linux amdgpu not-radeon" {
        bootoptions="img_dev=$imgdevpath img_loop=$iso_path earlymodules=loop misobasedir=garuda misolabel=$cd_label nouveau.modeset=1 i915.modeset=1 radeon.modeset=0 amdgpu.modeset=1 logo.nologo overlay=free quiet  showopts"
        linux (loop)/boot/vmlinuz-* $bootoptions
        initrd (loop)/boot/initramfs-*.img
      }
      menuentry "Start (nvidia proprietary non-free drivers)" {
        bootoptions="img_dev=$imgdevpath img_loop=$iso_path earlymodules=loop misobasedir=garuda misolabel=$cd_label nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 nonfree=yes logo.nologo overlay=nonfree quiet  showopts"
        linux (loop)/boot/vmlinuz-* $bootoptions
        initrd (loop)/boot/initramfs-*.img
      }
      menuentry "Start Garuda no nVidia" {
        bootoptions="img_dev=$imgdevpath img_loop=$iso_path earlymodules=loop misobasedir=garuda misolabel=$cd_label nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 logo.nologo overlay=free quiet  showopts"
        linux (loop)/boot/vmlinuz-* $bootoptions
        initrd (loop)/boot/initramfs-*.img
      }
    }
  fi
done

You could add this to your list of distros.
/boot/grub/mbusb.d/garuda.d/generic.cfg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants