ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Артём <temap@mail.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] mkimage-profiles 1.4.8-alt1
Date: Mon, 22 Mar 2021 23:44:19 +0300
Message-ID: <e3ce9b46-c63a-6595-00fd-3885cc505fc2@mail.ru> (raw)
In-Reply-To: <761aef2e-e189-594b-b3ea-8227f5e66f71@ya.ru>

$ rpm -qa mkimage
mkimage-0.2.40-alt1.noarch

git clone http://git.altlinux.org/gears/m/mkimage-profiles.git

# cat /home/tema/mkimage-profiles/bld/.work/chroot/.work/EFI/BOOT/grub.cfg
search --file --set=root /.disk/info
set prefix=($root)/boot/grub
source $prefix/grub.cfg

# cat /home/tema/mkimage-profiles/bld/.work/chroot/.work/boot/grub/grub.cfg
insmod echo
insmod gzio
insmod minicmd
insmod normal
insmod test
set timeout=60
if [ "$grub_platform" = "efi" ]; then set EFI_BOOTARGS=' lang=ru_RU'; fi
if [ "$grub_platform" = "efi" -a "$grub_cpu" = "x86_64" ]; then
         set linux_suffix='efi'
fi
if [ "$grub_platform" = "pc" ]; then set linux_suffix='16'; fi
if [ ! "$lang" ]; then lang=en_US; fi
function load_video {
   if [ x$feature_all_video_module = xy ]; then
     insmod all_video
   else
     insmod efi_gop
     insmod efi_uga
     insmod ieee1275_fb
     insmod vbe
     insmod vga
     insmod video_bochs
     insmod video_cirrus
   fi
}

font=${prefix}/fonts/unicode.pf2
if loadfont "$font" ; then
   set gfxmode=auto
   load_video
   insmod gfxterm
   terminal_output gfxterm
   if [ -d ${prefix}/locale ]; then
     set locale_dir=${prefix}/locale
     insmod gettext
   fi
   insmod gfxmenu
   insmod jpeg
   insmod png
   if [ -f ${prefix}/themes/school/theme.txt ]; then
     set theme=${prefix}/themes/school/theme.txt;
     export theme
   fi
   set timeout_style=menu
   set menu_color_normal=white/black
   set menu_color_highlight=black/white
   set color_normal=white/black
   set color_highlight=black/white
fi
menuentry $"LiveCD (no hard disk needed)" --id 'live' {
   echo $"Loading Linux vmlinuz$KFLAVOUR ..."
   linux$linux_suffix /EFI/BOOT/vmlinuz$KFLAVOUR changedisk fastboot 
live automatic=method:cdrom ramdisk_size=3671297 stagename=live showopts 
lowmem vga=normal quiet splash $EFI_BOOTARGS lang=$lang
   echo $"Loading initial ramdisk ..."
   initrd$linux_suffix /EFI/BOOT/full$KFLAVOUR.cz
}


menuentry $"LiveCD with sessions support" --id 'session' {
   echo $"Loading Linux vmlinuz$KFLAVOUR ..."
   linux$linux_suffix /EFI/BOOT/vmlinuz$KFLAVOUR changedisk fastboot 
live automatic=method:cdrom ramdisk_size=3671297 stagename=live showopts 
live_rw vga=normal quiet splash $EFI_BOOTARGS lang=$lang
   echo $"Loading initial ramdisk ..."
   initrd$linux_suffix /EFI/BOOT/full$KFLAVOUR.cz
}
submenu $"Change language (press F2)" --hotkey 'f2' {
         insmod regexp
         for langstr in "ru_RU=Russian" "en_US=English" 
"pt_BR=Portuguese" "kk_KZ=Kazakh" "uk_UA=Ukrainian"; do
                 regexp -s 2:langname -s 1:langcode '(.*)=(.*)' "$langstr"
                 menuentry "${langname}" "$langcode" {
                         lang="$2"
                         export lang
                         configfile ${prefix}/grub.cfg
                 }
         done
         menuentry $"Return to the Main menu" {
                 configfile ${prefix}/grub.cfg
         }
}
if [ "$grub_platform" = "pc" ]; then
         menuentry $"Memory Test" --id 'memtest' {
                 linux16 /syslinux/memtest.bin
         }
fi
if [ "$grub_platform" = "efi" ]; then
         menuentry $"System setup" --id 'uefi-firmware' {
                 fwsetup
         }
fi
default='live'


22.03.2021 23:11, Антон Мидюков пишет:
> 22.03.2021 23:14, Артём пишет:
>> Грузится grub-efi, полагаю, т.к. очень похож на grub. rEFInd выглядит по-другому с большими графическими кнопками, а не с обычным текстовым меню
>>
>> Там где grub грузится там меню по-русски
>>
>> Там где grub-efi там меню на английском
>>
> Могу заверить, что добавление use/l10n/default/ru_RU локализует меню grub при наличии перевода в boot/grub/locale/ru.mo и включенной темы grub.
> mkimage последней версии установлен? И mkimage-profiles тоже?
> что в grub.cfg?
>
>
-- 
С уважением, Артём



  reply	other threads:[~2021-03-22 20:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16  7:59 Антон Мидюков
2021-03-16 12:44 ` Антон Мидюков
2021-03-17 13:52   ` Michael Shigorin
2021-03-22 14:09     ` Артём
2021-03-22 14:20       ` Michael Shigorin
2021-03-22 14:28         ` Антон Мидюков
2021-03-22 14:49         ` Артём
2021-03-22 14:55           ` Антон Мидюков
2021-03-22 16:14             ` Артём
2021-03-22 20:11               ` Антон Мидюков
2021-03-22 20:44                 ` Артём [this message]
2021-03-22 21:03                   ` Антон Мидюков
2021-03-22 21:00                 ` Артём
2021-03-22 22:24                   ` Антон Мидюков
2021-03-22 22:33                     ` Артём
2021-03-22 22:40                     ` Артём
2021-03-23  8:11                       ` Michael Shigorin
2021-03-23  8:20                         ` Антон Мидюков
2021-12-09 16:01                       ` Артём
2021-03-17 13:53   ` Антон Мидюков

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=e3ce9b46-c63a-6595-00fd-3885cc505fc2@mail.ru \
    --to=temap@mail.ru \
    --cc=devel-distro@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 Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/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 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

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


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