From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FUZZY_XPILL autolearn=no version=3.2.5 Date: Fri, 8 Feb 2013 12:48:22 +0200 From: Michael Shigorin To: ALT Linux Sisyphus discussions Message-ID: <20130208104822.GU29047@osdn.org.ua> Mail-Followup-To: ALT Linux Sisyphus discussions References: <51147202.1040609@kemsu.ru> <20130208095221.GL12395@osdn.org.ua> <5114DA45.7080600@kemsu.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="yQbNiKLmgenwUfTN" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5114DA45.7080600@kemsu.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [sisyphus] grub2-pc & text mode X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Sisyphus discussions List-Id: ALT Linux Sisyphus discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2013 10:48:29 -0000 Archived-At: List-Archive: List-Post: --yQbNiKLmgenwUfTN Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Feb 08, 2013 at 04:58:13PM +0600, REAL wrote: > >попробуй взять /etc/grub.d/05_altlinux_theme из alt10 > >и запустить grub-autoupdate. > Где ж его взять? У меня архива нет. Виноват, alt10 и в архив не собирался (хотя в alt9 этот файл такой же). Приложил для x86_64, на i586 поправь libdir. http://www.altlinux.org/Sisyphus_archive > >Результаты лучше тоже в bugzilla (вместе с > >/etc/sysconfig/grub2 и /boot/grub/grub.cfg) -- если > >исправится, то ещё и регрессия, если нет, то всё равно баг. > В багзиллу не хочу :) , хотелось бы без бюрократизма, тем более > что не сильно и анноит. Дело не в бюрократизме, а в том, что нужны дополнительные данные (т.к. сходу у меня не вылезло) и в почте они легче теряются. > >2 cas: это часом было сделано не ради светлых gfxboot-ных > >брендингов вроде simply? > А причём тут gfx, если речь про console? Консоль обычно тёмная, сплэши бывают светлыми; соответственно можно что-то исправить там и сломать сям. Повторюсь, я-то проверяю в консоли как раз в основном и ничего не сломалось. -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --yQbNiKLmgenwUfTN Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=05_altlinux_theme #! /bin/sh -e prefix=/usr exec_prefix=/usr bindir=/usr/bin libdir=/usr/lib64 datadir=/usr/share . ${datadir}/grub/grub-mkconfig_lib set_mono_theme() { cat << EOF set menu_color_normal=white/black set menu_color_highlight=black/light-gray EOF } # check for usable backgrounds use_bg=false if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] && [ "x$GRUB_WALLPAPER" != "x" ]; then for i in ${datadir}/grub/`basename $GRUB_WALLPAPER` $GRUB_WALLPAPER ; do if is_path_readable_by_grub $i ; then bg=$i case ${bg} in *.png) reader=png ;; *.tga) reader=tga ;; *.jpg|*.jpeg) reader=jpeg ;; esac if test -e ${libdir}/grub/i386-pc/${reader}.mod ; then echo "Found background image: `basename ${bg}`" >&2 use_bg=true break fi fi done fi # 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 --yQbNiKLmgenwUfTN--