ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergei Epiphanov <serpiph@nikiet.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Настройки grub2
Date: Mon, 27 Dec 2010 15:36:06 +0300
Message-ID: <201012271536.06736.serpiph@nikiet.ru> (raw)
In-Reply-To: <87mxnrmoks.fsf@vps2.branbackup.org>

В сообщении от 27 декабря 2010 14:40:03 автор Vitaly Kuznetsov написал:
> os-prober нуден для автоматического поиска других ОС, подобного
> функционала для lilo нет, есть только alterator-lilo. 

Не в том дело. В lilo при установке/удалении ядра добавляется или убирается 
соответствующий раздел в lilo.conf без перетряса всей конфигурации. В grub же 
делается полный перетряс всей вертикали власти. После прочтения ноябрьского 
обсуждения grub2+os-probe я как-то не горю желанием его вкатывать.



Из-за этого же пришлось руками залезть в 10-altlinux_theme и вынести нафиг 
принудительную установку монохромной темы, если нет обоев. Я уже на это 
жаловался. Мне ближе бело-голубое оформление. Я вот про этот кусок:

# set the background if possible                                                                                                                              
if ${use_bg} ; then                                                                                                                                           
  prepare_grub_to_access_device `${grub_probe} --target=device ${bg}`                                                                                         
  cat << EOF                                                                                                                                                  
insmod ${reader}                                                                                                                                              
if background_image `make_system_path_relative_to_its_root ${bg}` ; then                                                                                      
  set color_normal=$GRUB_COLOR_NORMAL                                                                                                                         
  set color_highlight=$GRUB_COLOR_HIGHLIGHT                                                                                                                   
else                                                                                                                                                          
EOF                                                                                                                                                           
fi                                                                                                                                                            
                                                                                                                                                              
# otherwise, set a monochromatic theme for Ubuntu                                                                                                             
if ${use_bg} ; then                                                                                                                                           
  set_mono_theme | sed -e "s/^/  /g"                                                                                                                          
  echo "fi"                                                                                                                                                   
else                                                                                                                                                          
  set_mono_theme                                                                                                                                              
fi

и тупо прописать 

set color_normal=$GRUB_COLOR_NORMAL                                                                                                                         
set color_highlight=$GRUB_COLOR_HIGHLIGHT                                                                                                                   

Считаю игры "тут смотрю - тут не смотрю" извратом.

-- 
С уважением, Епифанов Сергей


  reply	other threads:[~2010-12-27 12:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-27  9:55 Sergei Epiphanov
2010-12-27 10:44 ` Vitaly Kuznetsov
2010-12-27 11:31   ` Sergei Epiphanov
2010-12-27 11:36     ` Vitaly Kuznetsov
2010-12-27 11:38     ` Игорь Андросов
2010-12-27 11:40       ` Vitaly Kuznetsov
2010-12-27 12:36         ` Sergei Epiphanov [this message]
2010-12-27 19:33           ` Sergey Vlasov
2010-12-28 11:09             ` Sergei Epiphanov
2010-12-27 11:43     ` Roman Lesnichenko
2010-12-27 12:38     ` Sergei Epiphanov
2010-12-27 15:14 ` Sergey Vlasov
2010-12-28 11:13   ` Sergei Epiphanov
2010-12-28 12:14     ` [sisyphus] [JT] " Ildar Mulyukov
2010-12-28 11:45       ` Sergei Epiphanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201012271536.06736.serpiph@nikiet.ru \
    --to=serpiph@nikiet.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


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