all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* manage /boot/grub/grub.cfg without installing grub binaries to disk
@ 2019-02-12 19:04 Jack Hill
  2019-02-14  4:27 ` Raghav "RG" Gururajan
  0 siblings, 1 reply; 11+ messages in thread
From: Jack Hill @ 2019-02-12 19:04 UTC (permalink / raw)
  To: guix-devel; +Cc: raghavgururajan

Greetings,

This email records some thinking that we had on IRC today. raghavgururajan 
and I have use cases for a Guix-managed grub.cfg, but without Guix-managed 
grub boot binaries. This is to support booting a Guix system with an 
external grub, where there is no place for Guix to install grub. For 
raghavgururajan, this is because their whole disk is a luks encrypted 
volume and they are using libreboot's grub. For me, this is for using Grub 
on the Linode VPS provider that has an external grub and prefers disks 
that are raw filesystems without partition tables.

We came up with the idea to add an option to the bootloader part of an 
operating system definition to skip installing the book binaries. Thoughts 
this idea, what the configuration interface should be, or what the 
implementation should look like?

Best,
Jack

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-12 19:04 manage /boot/grub/grub.cfg without installing grub binaries to disk Jack Hill
@ 2019-02-14  4:27 ` Raghav "RG" Gururajan
  0 siblings, 0 replies; 11+ messages in thread
From: Raghav "RG" Gururajan @ 2019-02-14  4:27 UTC (permalink / raw)
  To: Jack Hill; +Cc: guix-devel@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1351 bytes --]

Hello Guix!

Yes, there should be a way to make "guix system" to generate and maintain grub configuration (grub.cfg) in /boot directory but not actually installing the bootloader in the disk. It would be awesome, if this can be implemented in version 1.0 before it get released.

Regards,
Raghav "RG" Gururajan.


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, 12 February 2019 14:04, Jack Hill <jackhill@jackhill.us> wrote:

> Greetings,
> 

> This email records some thinking that we had on IRC today. raghavgururajan
> and I have use cases for a Guix-managed grub.cfg, but without Guix-managed
> grub boot binaries. This is to support booting a Guix system with an
> external grub, where there is no place for Guix to install grub. For
> raghavgururajan, this is because their whole disk is a luks encrypted
> volume and they are using libreboot's grub. For me, this is for using Grub
> on the Linode VPS provider that has an external grub and prefers disks
> that are raw filesystems without partition tables.
> 

> We came up with the idea to add an option to the bootloader part of an
> operating system definition to skip installing the book binaries. Thoughts
> this idea, what the configuration interface should be, or what the
> implementation should look like?
> 

> Best,
> Jack


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* manage /boot/grub/grub.cfg without installing grub binaries to disk
@ 2019-02-14 17:15 Clément Lassieur
  2019-02-14 18:07 ` Raghav "RG" Gururajan
  0 siblings, 1 reply; 11+ messages in thread
From: Clément Lassieur @ 2019-02-14 17:15 UTC (permalink / raw)
  To: jackhill, raghavgururajan; +Cc: guix-devel

Hi Jack and Raghav,

Could you try this?

--8<---------------cut here---------------start------------->8---
(bootloader-configuration
     (bootloader
      (bootloader
       (inherit grub-bootloader)
       (installer #~(const #t)))))
--8<---------------cut here---------------end--------------->8---

Clément

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-14 17:15 Clément Lassieur
@ 2019-02-14 18:07 ` Raghav "RG" Gururajan
  2019-02-16 18:58   ` Raghav "RG" Gururajan
  0 siblings, 1 reply; 11+ messages in thread
From: Raghav "RG" Gururajan @ 2019-02-14 18:07 UTC (permalink / raw)
  To: clement, jackhill; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 557 bytes --]

Hi Clement!
>
> Thanks! Will do.
>
> @Jack. Can you also try this and let me know. My system is running dd command for 2TB HDD. So gonna take a while.
>
> Thanks!
-------- Original Message --------
On 14 Feb 2019, 12:15, Clément Lassieur wrote:

> Hi Jack and Raghav,
>
> Could you try this?
>
> --8<---------------cut here---------------start------------->8---
> (bootloader-configuration
> (bootloader
> (bootloader
> (inherit grub-bootloader)
> (installer #~(const #t)))))
> --8<---------------cut here---------------end--------------->8---
>
> Clément

[-- Attachment #1.2: Type: text/html, Size: 749 bytes --]

[-- Attachment #2: publickey - raghavgururajan@protonmail.ch - 0xE1982130.asc --]
[-- Type: application/pgp-keys, Size: 3179 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-14 18:07 ` Raghav "RG" Gururajan
@ 2019-02-16 18:58   ` Raghav "RG" Gururajan
  2019-02-16 21:12     ` Raghav "RG" Gururajan
  0 siblings, 1 reply; 11+ messages in thread
From: Raghav "RG" Gururajan @ 2019-02-16 18:58 UTC (permalink / raw)
  To: clement, jackhill; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 817 bytes --]

Hi Clement!

The following is the error I got.

config-fail.scm:9:0: error: inherit: unbound variable
hint: Did you forget a `use-modules' form?

-------- Original Message --------
On 14 Feb 2019, 13:07, Raghav "RG" Gururajan wrote:

> Hi Clement!
>>
>> Thanks! Will do.
>>
>> @Jack. Can you also try this and let me know. My system is running dd command for 2TB HDD. So gonna take a while.
>>
>> Thanks!
> -------- Original Message --------
> On 14 Feb 2019, 12:15, Clément Lassieur wrote:
>
>> Hi Jack and Raghav,
>>
>> Could you try this?
>>
>> --8<---------------cut here---------------start------------->8---
>> (bootloader-configuration
>> (bootloader
>> (bootloader
>> (inherit grub-bootloader)
>> (installer #~(const #t)))))
>> --8<---------------cut here---------------end--------------->8---
>>
>> Clément

[-- Attachment #1.2: Type: text/html, Size: 1093 bytes --]

[-- Attachment #2: publickey - raghavgururajan@protonmail.ch - 0xE1982130.asc --]
[-- Type: application/pgp-keys, Size: 3179 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-16 18:58   ` Raghav "RG" Gururajan
@ 2019-02-16 21:12     ` Raghav "RG" Gururajan
  2019-02-16 22:11       ` Clément Lassieur
  0 siblings, 1 reply; 11+ messages in thread
From: Raghav "RG" Gururajan @ 2019-02-16 21:12 UTC (permalink / raw)
  To: clement@lassieur.org, jackhill@jackhill.us; +Cc: guix-devel@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1349 bytes --]

@clement

This is the actual error.

/etc/config-fail.scm:9:0: error: extraneous field initializers (bootloader-configuration)

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, February 16, 2019 6:58 PM, Raghav "RG" Gururajan <raghavgururajan@protonmail.ch> wrote:

> Hi Clement!
> 

> The following is the error I got.
> 

> config-fail.scm:9:0: error: inherit: unbound variable
> hint: Did you forget a `use-modules' form?
> 

> -------- Original Message --------
> On 14 Feb 2019, 13:07, Raghav "RG" Gururajan < raghavgururajan@protonmail.ch> wrote:
> 

> > Hi Clement!
> > >
> > > Thanks! Will do.
> > >
> > > @Jack. Can you also try this and let me know. My system is running dd command for 2TB HDD. So gonna take a while.
> > >
> > > Thanks!
> > -------- Original Message --------
> > On 14 Feb 2019, 12:15, Clément Lassieur < clement@lassieur.org> wrote:
> > 

> > > Hi Jack and Raghav,
> > > 

> > > Could you try this?
> > > 

> > > --8<---------------cut here---------------start------------->8---
> > > (bootloader-configuration
> > > (bootloader
> > > (bootloader
> > > (inherit grub-bootloader)
> > > (installer #~(const #t)))))
> > > --8<---------------cut here---------------end--------------->8---
> > > 

> > > Clément

[-- Attachment #1.1.2.1: Type: text/html, Size: 2280 bytes --]

[-- Attachment #1.2: publickey - raghavgururajan@protonmail.ch - 0xE1982130.asc --]
[-- Type: application/pgp-keys, Size: 3223 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-16 21:12     ` Raghav "RG" Gururajan
@ 2019-02-16 22:11       ` Clément Lassieur
  2019-02-16 22:38         ` Raghav "RG" Gururajan
  0 siblings, 1 reply; 11+ messages in thread
From: Clément Lassieur @ 2019-02-16 22:11 UTC (permalink / raw)
  To: Raghav RG Gururajan; +Cc: guix-devel@gnu.org

Hi Raghav,

Raghav RG Gururajan <raghavgururajan@protonmail.ch> writes:

> @clement
>
> This is the actual error.
>
> /etc/config-fail.scm:9:0: error: extraneous field initializers (bootloader-configuration)

Yes, you need to use the (gnu bootloader) module.

I actually use the (gnu) module as shown in the docs, which exports (gnu
bootloader) and some other stuff too.

Clément

> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Saturday, February 16, 2019 6:58 PM, Raghav "RG" Gururajan <raghavgururajan@protonmail.ch> wrote:
>
>> Hi Clement!
>> 
>
>> The following is the error I got.
>> 
>
>> config-fail.scm:9:0: error: inherit: unbound variable
>> hint: Did you forget a `use-modules' form?
>> 
>
>> -------- Original Message --------
>> On 14 Feb 2019, 13:07, Raghav "RG" Gururajan < raghavgururajan@protonmail.ch> wrote:
>> 
>
>> > Hi Clement!
>> > >
>> > > Thanks! Will do.
>> > >
>> > > @Jack. Can you also try this and let me know. My system is running dd command for 2TB HDD. So gonna take a while.
>> > >
>> > > Thanks!
>> > -------- Original Message --------
>> > On 14 Feb 2019, 12:15, Clément Lassieur < clement@lassieur.org> wrote:
>> > 
>
>> > > Hi Jack and Raghav,
>> > > 
>
>> > > Could you try this?
>> > > 
>
>> > > --8<---------------cut here---------------start------------->8---
>> > > (bootloader-configuration
>> > > (bootloader
>> > > (bootloader
>> > > (inherit grub-bootloader)
>> > > (installer #~(const #t)))))
>> > > --8<---------------cut here---------------end--------------->8---
>> > > 
>
>> > > Clément

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-16 22:11       ` Clément Lassieur
@ 2019-02-16 22:38         ` Raghav "RG" Gururajan
  2019-02-17 18:26           ` Clément Lassieur
  0 siblings, 1 reply; 11+ messages in thread
From: Raghav "RG" Gururajan @ 2019-02-16 22:38 UTC (permalink / raw)
  To: clement; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 1908 bytes --]

@clement

Thanks! Btw, shouldn't the first line be "(boot loader (bootloader-configuration)" in the code snippet you sent??

-------- Original Message --------
On 16 Feb 2019, 17:11, Clément Lassieur wrote:

> Hi Raghav,
>
> Raghav RG Gururajan <raghavgururajan@protonmail.ch> writes:
>
>> @clement
>>
>> This is the actual error.
>>
>> /etc/config-fail.scm:9:0: error: extraneous field initializers (bootloader-configuration)
>
> Yes, you need to use the (gnu bootloader) module.
>
> I actually use the (gnu) module as shown in the docs, which exports (gnu
> bootloader) and some other stuff too.
>
> Clément
>
>> Sent with ProtonMail Secure Email.
>>
>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>> On Saturday, February 16, [2019 6](tel:20196):58 PM, Raghav "RG" Gururajan <raghavgururajan@protonmail.ch> wrote:
>>
>>> Hi Clement!
>>>
>>
>>> The following is the error I got.
>>>
>>
>>> config-fail.scm:9:0: error: inherit: unbound variable
>>> hint: Did you forget a `use-modules' form?
>>>
>>
>>> -------- Original Message --------
>>> On 14 Feb [2019](tel:2019), 13:07, Raghav "RG" Gururajan < raghavgururajan@protonmail.ch> wrote:
>>>
>>
>>> > Hi Clement!
>>> > >
>>> > > Thanks! Will do.
>>> > >
>>> > > @Jack. Can you also try this and let me know. My system is running dd command for 2TB HDD. So gonna take a while.
>>> > >
>>> > > Thanks!
>>> > -------- Original Message --------
>>> > On 14 Feb [2019](tel:2019), 12:15, Clément Lassieur < clement@lassieur.org> wrote:
>>> >
>>
>>> > > Hi Jack and Raghav,
>>> > >
>>
>>> > > Could you try this?
>>> > >
>>
>>> > > --8<---------------cut here---------------start------------->8---
>>> > > (bootloader-configuration
>>> > > (bootloader
>>> > > (bootloader
>>> > > (inherit grub-bootloader)
>>> > > (installer #~(const #t)))))
>>> > > --8<---------------cut here---------------end--------------->8---
>>> > >
>>
>>> > > Clément

[-- Attachment #1.2: Type: text/html, Size: 3004 bytes --]

[-- Attachment #2: publickey - raghavgururajan@protonmail.ch - 0xE1982130.asc --]
[-- Type: application/pgp-keys, Size: 3179 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-16 22:38         ` Raghav "RG" Gururajan
@ 2019-02-17 18:26           ` Clément Lassieur
  2019-02-18 14:16             ` Raghav "RG" Gururajan
  0 siblings, 1 reply; 11+ messages in thread
From: Clément Lassieur @ 2019-02-17 18:26 UTC (permalink / raw)
  To: Raghav RG Gururajan; +Cc: guix-devel

Raghav RG Gururajan <raghavgururajan@protonmail.ch> writes:

> @clement
>
> Thanks! Btw, shouldn't the first line be "(boot loader (bootloader-configuration)" in the code snippet you sent??

Well, I just gave the value of the bootloader field, but with this your
config.scm should look like:

(operating-system
[...]
  (bootloader (bootloader-configuration
               (bootloader
                (bootloader
                 (inherit grub-bootloader)
                 (installer #~(const #t))))))

[...]
)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
  2019-02-17 18:26           ` Clément Lassieur
@ 2019-02-18 14:16             ` Raghav "RG" Gururajan
       [not found]               ` <qRt0zY8kCCcLGyOP-cnGJsAs0NlANphUXfSv01fTQ4ybkmXnbitC06aTC_-yUAT0Nb-mQOduZJyzDUHS4DeGACcBPt9vlmgKUWIawJ9abzQ=@protonmail.ch>
  0 siblings, 1 reply; 11+ messages in thread
From: Raghav "RG" Gururajan @ 2019-02-18 14:16 UTC (permalink / raw)
  To: clement; +Cc: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 580 bytes --]

Ah! Got it. Thank you!
-------- Original Message --------
On 17 Feb 2019, 13:26, Clément Lassieur wrote:

> Raghav RG Gururajan <raghavgururajan@protonmail.ch> writes:
>
>> @clement
>>
>> Thanks! Btw, shouldn't the first line be "(boot loader (bootloader-configuration)" in the code snippet you sent??
>
> Well, I just gave the value of the bootloader field, but with this your
> config.scm should look like:
>
> (operating-system
> [...]
> (bootloader (bootloader-configuration
> (bootloader
> (bootloader
> (inherit grub-bootloader)
> (installer #~(const #t))))))
>
> [...]
> )

[-- Attachment #1.2: Type: text/html, Size: 833 bytes --]

[-- Attachment #2: publickey - raghavgururajan@protonmail.ch - 0xE1982130.asc --]
[-- Type: application/pgp-keys, Size: 3179 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: manage /boot/grub/grub.cfg without installing grub binaries to disk
       [not found]               ` <qRt0zY8kCCcLGyOP-cnGJsAs0NlANphUXfSv01fTQ4ybkmXnbitC06aTC_-yUAT0Nb-mQOduZJyzDUHS4DeGACcBPt9vlmgKUWIawJ9abzQ=@protonmail.ch>
@ 2019-02-19  7:16                 ` Clément Lassieur
  0 siblings, 0 replies; 11+ messages in thread
From: Clément Lassieur @ 2019-02-19  7:16 UTC (permalink / raw)
  To: Raghav RG Gururajan; +Cc: guix-devel

I'm unsure it's related.  It's talking about an error while building
xxx-etc.drv.  Maybe you should have a look at the actual log?

See "View build log at..."

Raghav RG Gururajan <raghavgururajan@protonmail.ch> writes:

> @Clement
>
> The code didn't work. I have attached the error with this email.
> -------- Original Message --------
> On 18 Feb 2019, 09:16, Raghav "RG" Gururajan wrote:
>
>> Ah! Got it. Thank you!
>> -------- Original Message --------
>> On 17 Feb 2019, 13:26, Clément Lassieur wrote:
>>
>>> Raghav RG Gururajan <raghavgururajan@protonmail.ch> writes:
>>>
>>>> @clement
>>>>
>>>> Thanks! Btw, shouldn't the first line be "(boot loader (bootloader-configuration)" in the code snippet you sent??
>>>
>>> Well, I just gave the value of the bootloader field, but with this your
>>> config.scm should look like:
>>>
>>> (operating-system
>>> [...]
>>> (bootloader (bootloader-configuration
>>> (bootloader
>>> (bootloader
>>> (inherit grub-bootloader)
>>> (installer #~(const #t))))))
>>>
>>> [...]
>>> )

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-02-19  7:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 19:04 manage /boot/grub/grub.cfg without installing grub binaries to disk Jack Hill
2019-02-14  4:27 ` Raghav "RG" Gururajan
  -- strict thread matches above, loose matches on Subject: below --
2019-02-14 17:15 Clément Lassieur
2019-02-14 18:07 ` Raghav "RG" Gururajan
2019-02-16 18:58   ` Raghav "RG" Gururajan
2019-02-16 21:12     ` Raghav "RG" Gururajan
2019-02-16 22:11       ` Clément Lassieur
2019-02-16 22:38         ` Raghav "RG" Gururajan
2019-02-17 18:26           ` Clément Lassieur
2019-02-18 14:16             ` Raghav "RG" Gururajan
     [not found]               ` <qRt0zY8kCCcLGyOP-cnGJsAs0NlANphUXfSv01fTQ4ybkmXnbitC06aTC_-yUAT0Nb-mQOduZJyzDUHS4DeGACcBPt9vlmgKUWIawJ9abzQ=@protonmail.ch>
2019-02-19  7:16                 ` Clément Lassieur

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.