You are not logged in.

#1 2013-10-15 19:32:39

PhilipV
Member
Registered: 2013-10-15
Posts: 2

grub-mkstandalone with custom configuration

Hi everyone,
I am trying to install Arch Linux on a Macbook 8,2 (Intel+Ati Graphics) alongside Os X.
I was able to successfully complete the installation of Arch using that partition scheme:

sda1     hfs+      Basic Apple Efi Partition
sda2     hfs+      Os X
sda3     hfs+      Grub partition
sda4     ext2      /boot
sda5     ext4      /
sda6     ext4      /home

That setup allows me not to install Refind/Refit, and to directly Efi boot on the small Grub partition. To setup the partition I was told to use the command

grub-mkstandalone -o boot.efi -d usr/lib/grub/x86_64-efi -O x86_64-efi -C xz boot/grub/grub.cfg 

and then to copy the generated "boot.efi" in the small hfs+ partition.

This method works, but I need to add those parameters to edit the grub boot menu like this:

    set gfxpayload=keep
    
    outb 0x728 1
    outb 0x710 2
    outb 0x740 2
    outb 0x750 0
    
    insmod gzio
...
...
    linux /vmlinuz-linux root=/dev/mapper/vgroup-root cryptdevice=/dev/sda2:vgroup ro quiet radeon.modeset=0 i915.modeset=1 i915.lvds_channel_mode=2 i915.lvds_use_ssc=0 acpi_backlight=vendor libahci.ignore_sss=1
    initrd /initramfs-linux.img

How can i do it?

I both attempted to edit the /etc/grub/grub.conf, where i added to the default parameters the one listed up here,
and to edit /etc/grub.d/10_linux , adding this thing in the right place
adding

  echo "	outb 0x728 1" | sed "s/^/$submenu_indentation/"
  echo "	outb 0x710 2" | sed "s/^/$submenu_indentation/"
  echo "	outb 0x740 2" | sed "s/^/$submenu_indentation/"
  echo "	outb 0x750 0" | sed "s/^/$submenu_indentation/"
  echo "	insmod gzio" | sed "s/^/$submenu_indentation/"

but both did not work. (That means, booting on grub does not get those things I modified)

Thanks for your help,
Filippo

Offline

#2 2013-10-16 02:16:00

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,143

Re: grub-mkstandalone with custom configuration

Welcome to Arch.

There is no directory /etc/grub on my system.

What is the output of uname -a?

EDIT: Also, who told you to do that? What instructions are you following?

Last edited by cfr (2013-10-16 02:17:42)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-10-17 07:13:02

PhilipV
Member
Registered: 2013-10-15
Posts: 2

Re: grub-mkstandalone with custom configuration

Thanks for the welcome!

You are right! it is /etc/default/grub.conf . It was a Typo.

 uname -a
Linux archbook 3.11.5-1-ARCH #1 SMP PREEMPT Mon Oct 14 08:31:43 CEST 2013 x86_64 Gnu/Linux

Im following this tutorial http://codylittlewood.com/arch-linux-on … tallation/
With a spice of http://rorygarand.com/blog/2013/6/6/arc … oot-loader

Last edited by PhilipV (2013-10-17 07:16:39)

Offline

#4 2013-10-17 09:32:51

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: grub-mkstandalone with custom configuration

First of all, online tutorials are not quit a good method to install Arch; Arch is updated so fast these tutorials tend to get outdated in no time.
Secondly, take a good look at this page to set up Grub properly.

Offline

#5 2013-10-17 21:12:42

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,143

Re: grub-mkstandalone with custom configuration

What henk said. Plus there is no /etc/default/grub.conf either.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB