ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] grub2-pc & text mode
Date: Fri, 8 Feb 2013 12:48:22 +0200
Message-ID: <20130208104822.GU29047@osdn.org.ua> (raw)
In-Reply-To: <5114DA45.7080600@kemsu.ru>

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

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 <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: 05_altlinux_theme --]
[-- Type: text/plain, Size: 1280 bytes --]

#! /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

  parent reply	other threads:[~2013-02-08 10:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-08  3:33 REAL
2013-02-08  9:52 ` Michael Shigorin
2013-02-08 10:36   ` Андрей Черепанов
2013-02-08 10:58   ` REAL
2013-02-08 10:04     ` Aleksey Novodvorsky
2013-02-08 10:48     ` Michael Shigorin [this message]
2013-02-08 14:10   ` REAL
2013-02-08 15:08     ` Michael Shigorin
2013-02-08 15:26       ` Alexei V. Mezin

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=20130208104822.GU29047@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=shigorin@gmail.com \
    --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