unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Hide boot process logs
@ 2020-08-18 13:56 Reza Alizadeh Majd
  2020-08-18 16:04 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 5+ messages in thread
From: Reza Alizadeh Majd @ 2020-08-18 13:56 UTC (permalink / raw)
  To: help-guix

Hi, 

I want to hide the boot process logs in Guix, having a quick search I
found that I can use following options in grub configuration file:


GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 


the problem is that based on current bootloader definition, there is no
option exposed for additional grub configurations (or I might missed
the proper option for this).

does anyone knows, any workaround for this issue? 

Regards, 
Reza


-- 
Reza Alizadeh Majd
PantherX Team
https://www.pantherx.org/


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

* Re: Hide boot process logs
  2020-08-18 13:56 Hide boot process logs Reza Alizadeh Majd
@ 2020-08-18 16:04 ` Tobias Geerinckx-Rice
  2020-08-18 16:54   ` John Soo
  2020-08-18 17:42   ` Reza Alizadeh Majd
  0 siblings, 2 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice @ 2020-08-18 16:04 UTC (permalink / raw)
  To: Reza Alizadeh Majd; +Cc: help-guix

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

Hi Reza!

Reza Alizadeh Majd 写道:
> I want to hide the boot process logs in Guix, having a quick 
> search I
> found that I can use following options in grub configuration 
> file:
>
>
> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Forget this line.  No part of it makes sense on Guix (except 
‘quiet’, which is handled by the kernel itself, and see below for 
that).

GRUB_CMDLINE_LINUX_DEFAULT (and similar-looking variables) is used 
only by the ‘update-grub’ utility on some distributions that uses 
a bash configuration file to configure a bash script that creates 
the final (bash-like) grub.cfg.

As it sounds, it's a pretty horrible system, and it's not used by 
Guix at all.  grub.cfg is generated entirely by Guix itself, based 
on your operating-system record and previous system generations.

Adding ‘splash’ is equally specific to some other distribution, 
and has no effect on Guix System.

There is no splash screen code in Guix.  Plymouth has been 
packaged, but there's no code to launch it at boot.  I haven't 
even managed to make a ‘flicker-free boot’ happen on my i915.

> the problem is that based on current bootloader definition, 
> there is no
> option exposed for additional grub configurations (or I might 
> missed
> the proper option for this).

  (operating-system
    ...
    (kernel-arguments '("quiet")))

This will hide many but not all messages.  A silent boot, with or 
without a splash screen, is currently not a feature of Guix.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

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

* Re: Hide boot process logs
  2020-08-18 16:04 ` Tobias Geerinckx-Rice
@ 2020-08-18 16:54   ` John Soo
  2020-08-18 17:51     ` Reza Alizadeh Majd
  2020-08-18 17:42   ` Reza Alizadeh Majd
  1 sibling, 1 reply; 5+ messages in thread
From: John Soo @ 2020-08-18 16:54 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

Hey Reza and Guix,

I should add that even if it is not supported now, hacking on the grub configuration is not too difficult and is located in gnu/bootloader/grub.scm. You should be able to specify parameters there.

Hope that helps,
John

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

* Re: Hide boot process logs
  2020-08-18 16:04 ` Tobias Geerinckx-Rice
  2020-08-18 16:54   ` John Soo
@ 2020-08-18 17:42   ` Reza Alizadeh Majd
  1 sibling, 0 replies; 5+ messages in thread
From: Reza Alizadeh Majd @ 2020-08-18 17:42 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

Hi Tobias!

Thanks for your response. 

On Tue, 18 Aug 2020 18:04:05 +0200
Tobias Geerinckx-Rice <me@tobias.gr> wrote:
> Hi Reza!
> 
> Reza Alizadeh Majd 写道:
> > I want to hide the boot process logs in Guix, having a quick 
> > search I
> > found that I can use following options in grub configuration 
> > file:
> >
> >
> > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"  
> 
> Forget this line.  No part of it makes sense on Guix (except 
> ‘quiet’, which is handled by the kernel itself, and see below for 
> that).
> 

> GRUB_CMDLINE_LINUX_DEFAULT (and similar-looking variables) is used 
> only by the ‘update-grub’ utility on some distributions that uses 
> a bash configuration file to configure a bash script that creates 
> the final (bash-like) grub.cfg.

so as I understand, `update-grub` utility generate entries in a way to
perform a quiet boot using `GRUB_CMDLINE_LINUX_DEFAULT` parameter.
do you think if it's possible to perform these changes manually to menu
entries? 

I also find that we can redirect kernel logs to a separated TTY using 
`GRUB_CMDLINE_LINUX="console=tty...`. I assume this parameter is also
processed by `update-grub` utility. is it possible to perform same
action using `kernel-arguments` or some other modification in menu
entries? 


-- 
Reza Alizadeh Majd
PantherX Team
https://www.pantherx.org/


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

* Re: Hide boot process logs
  2020-08-18 16:54   ` John Soo
@ 2020-08-18 17:51     ` Reza Alizadeh Majd
  0 siblings, 0 replies; 5+ messages in thread
From: Reza Alizadeh Majd @ 2020-08-18 17:51 UTC (permalink / raw)
  To: John Soo; +Cc: help-guix

Hi John,

On Tue, 18 Aug 2020 09:54:00 -0700
John Soo <jsoo1@asu.edu> wrote:

> Hey Reza and Guix,
> 
> I should add that even if it is not supported now, hacking on the
> grub configuration is not too difficult and is located in
> gnu/bootloader/grub.scm. You should be able to specify parameters
> there.

Thanks, I had a quick look over `gnu/bootloader/grub.scm`. 

so as I understand, I need to inherit from `grub-bootloader` and replace
`configuration-file-generator` parameter with my own custom procedure
that returns a `computed-file` containing final `grub.cfg` with my
desired custom configuration parameters.

-- 
Reza Alizadeh Majd
PantherX Team
https://www.pantherx.org/


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

end of thread, other threads:[~2020-08-18 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 13:56 Hide boot process logs Reza Alizadeh Majd
2020-08-18 16:04 ` Tobias Geerinckx-Rice
2020-08-18 16:54   ` John Soo
2020-08-18 17:51     ` Reza Alizadeh Majd
2020-08-18 17:42   ` Reza Alizadeh Majd

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git