unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Automatically detect other OSs and generate grub entries
@ 2017-07-12 20:42 Arun Isaac
  2017-07-17 13:36 ` Ludovic Courtès
  0 siblings, 1 reply; 9+ messages in thread
From: Arun Isaac @ 2017-07-12 20:42 UTC (permalink / raw)
  To: guix-devel


Instead of having to manually specify custom grub entries in config.scm,
can Guix use os-prober to automatically detect other operating system
and generate grub entries?

https://joeyh.name/code/os-prober/

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

* Re: Automatically detect other OSs and generate grub entries
  2017-07-12 20:42 Automatically detect other OSs and generate grub entries Arun Isaac
@ 2017-07-17 13:36 ` Ludovic Courtès
  2017-07-17 17:38   ` Amirouche Boubekki
                     ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ludovic Courtès @ 2017-07-17 13:36 UTC (permalink / raw)
  To: Arun Isaac; +Cc: guix-devel

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Instead of having to manually specify custom grub entries in config.scm,
> can Guix use os-prober to automatically detect other operating system
> and generate grub entries?
>
> https://joeyh.name/code/os-prober/

I think there is value in having everything in the GuixSD config, which
can then be put under version control.

Now, I have a single OS on my machines so I’m probably not part of the
target audience.  :-)

Thoughts?

Ludo’.

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

* Re: Automatically detect other OSs and generate grub entries
  2017-07-17 13:36 ` Ludovic Courtès
@ 2017-07-17 17:38   ` Amirouche Boubekki
  2017-07-18 10:00     ` Ludovic Courtès
  2017-07-17 19:59   ` Arun Isaac
       [not found]   ` <b2c51b44.AEEANfr63OgAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZbRc4@mailjet.com>
  2 siblings, 1 reply; 9+ messages in thread
From: Amirouche Boubekki @ 2017-07-17 17:38 UTC (permalink / raw)
  To: Ludovic Courtès, Arun Isaac; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

On Mon, Jul 17, 2017 at 3:39 PM Ludovic Courtès <ludo@gnu.org> wrote:

> Arun Isaac <arunisaac@systemreboot.net> skribis:
>
> > Instead of having to manually specify custom grub entries in config.scm,
> > can Guix use os-prober to automatically detect other operating system
> > and generate grub entries?
> >
> > https://joeyh.name/code/os-prober/
>
> I think there is value in having everything in the GuixSD config, which
> can then be put under version control.
>
> Now, I have a single OS on my machines so I’m probably not part of the
> target audience.  :-)
>
> Thoughts?
>

My understanding is that os-probe could generate part of GuixSD config.


>
> Ludo’.
>
>

[-- Attachment #2: Type: text/html, Size: 1294 bytes --]

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

* Re: Automatically detect other OSs and generate grub entries
  2017-07-17 13:36 ` Ludovic Courtès
  2017-07-17 17:38   ` Amirouche Boubekki
@ 2017-07-17 19:59   ` Arun Isaac
       [not found]   ` <b2c51b44.AEEANfr63OgAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZbRc4@mailjet.com>
  2 siblings, 0 replies; 9+ messages in thread
From: Arun Isaac @ 2017-07-17 19:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel


Ludovic Courtès writes:

> Arun Isaac <arunisaac@systemreboot.net> skribis:
>
>> Instead of having to manually specify custom grub entries in config.scm,
>> can Guix use os-prober to automatically detect other operating system
>> and generate grub entries?
>>
>> https://joeyh.name/code/os-prober/
>
> I think there is value in having everything in the GuixSD config, which
> can then be put under version control.
>
> Now, I have a single OS on my machines so I’m probably not part of the
> target audience.  :-)
>
> Thoughts?

I too now only have a single OS. So, I don't really need this feature
either. But, I do think we should offer an user experience as close as
possible to other distros. Hence, I think automatic os detection and
grub generation is worthwile. It's nice to have the grub work
automagically out of the box.

Also, I noticed that custom grub entries are a problem for the proposed
"guix system delete-generations"

https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00194.html

Would automatic grub generation solve, or at least alleviate, this
problem?

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

* Re: Automatically detect other OSs and generate grub entries
  2017-07-17 17:38   ` Amirouche Boubekki
@ 2017-07-18 10:00     ` Ludovic Courtès
  2017-08-29 19:23       ` Arun Isaac
       [not found]       ` <5d344b4e.ADkAAC1SuZUAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZpb8_@mailjet.com>
  0 siblings, 2 replies; 9+ messages in thread
From: Ludovic Courtès @ 2017-07-18 10:00 UTC (permalink / raw)
  To: Amirouche Boubekki; +Cc: guix-devel

Amirouche Boubekki <amirouche.boubekki@gmail.com> skribis:

> On Mon, Jul 17, 2017 at 3:39 PM Ludovic Courtès <ludo@gnu.org> wrote:
>
>> Arun Isaac <arunisaac@systemreboot.net> skribis:
>>
>> > Instead of having to manually specify custom grub entries in config.scm,
>> > can Guix use os-prober to automatically detect other operating system
>> > and generate grub entries?
>> >
>> > https://joeyh.name/code/os-prober/
>>
>> I think there is value in having everything in the GuixSD config, which
>> can then be put under version control.
>>
>> Now, I have a single OS on my machines so I’m probably not part of the
>> target audience.  :-)
>>
>> Thoughts?
>>
>
> My understanding is that os-probe could generate part of GuixSD config.

Ah yes, that’d be easy and useful.  The first step would be to make a
package for it.

Ludo’.

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

* Re: Automatically detect other OSs and generate grub entries
       [not found]   ` <b2c51b44.AEEANfr63OgAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZbRc4@mailjet.com>
@ 2017-07-18 10:03     ` Ludovic Courtès
  0 siblings, 0 replies; 9+ messages in thread
From: Ludovic Courtès @ 2017-07-18 10:03 UTC (permalink / raw)
  To: Arun Isaac; +Cc: guix-devel

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Ludovic Courtès writes:
>
>> Arun Isaac <arunisaac@systemreboot.net> skribis:
>>
>>> Instead of having to manually specify custom grub entries in config.scm,
>>> can Guix use os-prober to automatically detect other operating system
>>> and generate grub entries?
>>>
>>> https://joeyh.name/code/os-prober/
>>
>> I think there is value in having everything in the GuixSD config, which
>> can then be put under version control.
>>
>> Now, I have a single OS on my machines so I’m probably not part of the
>> target audience.  :-)
>>
>> Thoughts?
>
> I too now only have a single OS. So, I don't really need this feature
> either. But, I do think we should offer an user experience as close as
> possible to other distros. Hence, I think automatic os detection and
> grub generation is worthwile. It's nice to have the grub work
> automagically out of the box.

I agree.  Perhaps we can use/tweak os-prober to generate ‘menu-entry’
forms suitable for use in the GuixSD config file?

> Also, I noticed that custom grub entries are a problem for the proposed
> "guix system delete-generations"
>
> https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00194.html
>
> Would automatic grub generation solve, or at least alleviate, this
> problem?

No, I think we still need to support entries specified in the OS config.

Ludo’.

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

* Re: Automatically detect other OSs and generate grub entries
  2017-07-18 10:00     ` Ludovic Courtès
@ 2017-08-29 19:23       ` Arun Isaac
       [not found]       ` <5d344b4e.ADkAAC1SuZUAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZpb8_@mailjet.com>
  1 sibling, 0 replies; 9+ messages in thread
From: Arun Isaac @ 2017-08-29 19:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel


Ludovic Courtès writes:

> Amirouche Boubekki <amirouche.boubekki@gmail.com> skribis:
>
>> On Mon, Jul 17, 2017 at 3:39 PM Ludovic Courtès <ludo@gnu.org> wrote:
>>
>>> Arun Isaac <arunisaac@systemreboot.net> skribis:
>>>
>>> > Instead of having to manually specify custom grub entries in config.scm,
>>> > can Guix use os-prober to automatically detect other operating system
>>> > and generate grub entries?
>>> >
>>> > https://joeyh.name/code/os-prober/
>>>
>>> I think there is value in having everything in the GuixSD config, which
>>> can then be put under version control.
>>>
>>> Now, I have a single OS on my machines so I’m probably not part of the
>>> target audience.  :-)
>>
>> My understanding is that os-probe could generate part of GuixSD config.
>
> Ah yes, that’d be easy and useful.  The first step would be to make a
> package for it.

I have packaged os-prober.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28281

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

* Re: Automatically detect other OSs and generate grub entries
       [not found]       ` <5d344b4e.ADkAAC1SuZUAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZpb8_@mailjet.com>
@ 2017-08-30 10:18         ` Ludovic Courtès
  2017-08-30 11:56           ` Arun Isaac
  0 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2017-08-30 10:18 UTC (permalink / raw)
  To: Arun Isaac; +Cc: guix-devel

Hi Arun,

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Ludovic Courtès writes:
>
>> Amirouche Boubekki <amirouche.boubekki@gmail.com> skribis:
>>
>>> On Mon, Jul 17, 2017 at 3:39 PM Ludovic Courtès <ludo@gnu.org> wrote:
>>>
>>>> Arun Isaac <arunisaac@systemreboot.net> skribis:
>>>>
>>>> > Instead of having to manually specify custom grub entries in config.scm,
>>>> > can Guix use os-prober to automatically detect other operating system
>>>> > and generate grub entries?
>>>> >
>>>> > https://joeyh.name/code/os-prober/
>>>>
>>>> I think there is value in having everything in the GuixSD config, which
>>>> can then be put under version control.
>>>>
>>>> Now, I have a single OS on my machines so I’m probably not part of the
>>>> target audience.  :-)
>>>
>>> My understanding is that os-probe could generate part of GuixSD config.
>>
>> Ah yes, that’d be easy and useful.  The first step would be to make a
>> package for it.
>
> I have packaged os-prober.
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28281

I guess a next step could be to document it in the installation manual.
Or we could write a new tool that creates an ‘operating-system’ template
based on ‘os-prober’ output?

Thoughts?

Ludo’.

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

* Re: Automatically detect other OSs and generate grub entries
  2017-08-30 10:18         ` Ludovic Courtès
@ 2017-08-30 11:56           ` Arun Isaac
  0 siblings, 0 replies; 9+ messages in thread
From: Arun Isaac @ 2017-08-30 11:56 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel


>> I have packaged os-prober.
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28281
>
> I guess a next step could be to document it in the installation manual.
> Or we could write a new tool that creates an ‘operating-system’ template
> based on ‘os-prober’ output?
>
> Thoughts?

Yes, the next step is to use `os-prober' to generate an
`operating-system' template. Unless somebody else is interested in
taking this up, I will do it. But, it might take "a while".

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

end of thread, other threads:[~2017-08-30 11:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12 20:42 Automatically detect other OSs and generate grub entries Arun Isaac
2017-07-17 13:36 ` Ludovic Courtès
2017-07-17 17:38   ` Amirouche Boubekki
2017-07-18 10:00     ` Ludovic Courtès
2017-08-29 19:23       ` Arun Isaac
     [not found]       ` <5d344b4e.ADkAAC1SuZUAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZpb8_@mailjet.com>
2017-08-30 10:18         ` Ludovic Courtès
2017-08-30 11:56           ` Arun Isaac
2017-07-17 19:59   ` Arun Isaac
     [not found]   ` <b2c51b44.AEEANfr63OgAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZbRc4@mailjet.com>
2017-07-18 10:03     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).