From: Sergey Vlasov <vsu@altlinux.ru> To: sisyphus@lists.altlinux.org Subject: Re: [sisyphus] Настройки grub2 Date: Mon, 27 Dec 2010 22:33:04 +0300 Message-ID: <20101227193304.GA5815@atlas.home> (raw) In-Reply-To: <201012271536.06736.serpiph@nikiet.ru> [-- Attachment #1: Type: text/plain, Size: 2164 bytes --] On Mon, Dec 27, 2010 at 03:36:06PM +0300, Sergei Epiphanov wrote: > В сообщении от 27 декабря 2010 14:40:03 автор Vitaly Kuznetsov написал: > > os-prober нуден для автоматического поиска других ОС, подобного > > функционала для lilo нет, есть только alterator-lilo. > > Не в том дело. В lilo при установке/удалении ядра добавляется или убирается > соответствующий раздел в lilo.conf без перетряса всей конфигурации. В grub же > делается полный перетряс всей вертикали власти. После прочтения ноябрьского > обсуждения grub2+os-probe я как-то не горю желанием его вкатывать. Да, это не совсем приятно. Как минимум хотелось бы сделать поведение /usr/lib/rpm/grub2.filetrigger конфигурируемым - сделать возможность отключения автообновления конфигурации через настройки в /etc/sysconfig/grub2. А в идеальном случае надо бы добавить возможность изменения имени генерируемого файла (чтобы можно было, например, в /boot/grub/grub.cfg сделать своё меню с основным набором вариантов загрузки, откуда отдельным пунктом вызывать автоматически сгенерированное меню с полным списком установленных ядер). > Из-за этого же пришлось руками залезть в 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 На самом деле можно просто добавить эти строки в отдельный файл 11-custom-theme - они сработают, просто в сгенерированном файле будет лишний кусок от стандартной конфигурации. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-12-27 19:33 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 2010-12-27 19:33 ` Sergey Vlasov [this message] 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=20101227193304.GA5815@atlas.home \ --to=vsu@altlinux.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