ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Konstantin Lepikhov <lakostis@unsafe.ru>
To: devel-distro@lists.altlinux.org
Subject: Re: [devel-distro] Q: use/efi is broken?
Date: Thu, 6 Oct 2016 12:56:30 +0200
Message-ID: <20161006105630.GA22291@lks.home> (raw)
In-Reply-To: <20161005125128.GA12716@lks.home>

On 10/05/16, at 02:51:29 PM you wrote:

> Hi Denis!
> 
> On 10/05/16, at 02:06:48 PM you wrote:
> 
> > Hi Konstantin,
> > 
> > > Просто проверить, я один такой или это баг, если собрать live с +efi, то
> > > образ не видится на Apple (проверял на стареньком macbook air и новом
> > > mabook pro), но при этом видится как EFI на системах с Windows. Кто-то
> > > может это прояснить? )
> > 
> > О! а я как раз пытаюсь с этим разобраться -- у меня с efi вообще не собирается 
> > live образ:
> > 
> > + dd if=/dev/zero of=.efiboot.img bs=32k count=843
> > 843+0 records in
> > 843+0 records out
> > 27623424 bytes (28 MB) copied, 0.01169 s, 2.4 GB/s
> > + mkfs.vfat -v -n 'El Torito' .efiboot.img
> > /.host/efiboot.sh: line 267: mkfs.vfat: command not found
> > make[2]: *** [pack-image] Error 1
> > 
> > 
> В-общем, нужно еще кому-нибудь потестить и повесить баг. Я в UEFI не
> специалист вообще.
> 
Единственное подозрительное место, что я нашел в логах про efi:
<13>Oct  6 10:21:39 rpmi: grub2-pc-2.00-alt21 1450256299 installed
WARNING: GRUB_AUTOUPDATE_DEVICE not set in /etc/sysconfig/grub2
WARNING: run grub-install /dev/sdX if needed
<13>Oct  6 10:21:40 rpmi: grub2-efi-2.00-alt21 1450256388 installed
modprobe: FATAL: Module efivars not found in directory /lib/modules/4.8.0-lks-wks-alt0.2
Not booted in EFI mode, unable to update EFI GRUB
...
Но потом все вроде-бы правильно:
hsh-run: Locked config file `/etc/hasher-priv/user.d/lakostis'
** CONFIG_SQUASHFS available
** CONFIG_OVERLAY_FS available
** CONFIG_OVERLAY_FS available
** CONFIG_EFI available
** CONFIG_EFI_PARTITION available
** CONFIG_EFI_VARS available
** CONFIG_FB_EFI available
...
hsh-run: Locked config file `/etc/hasher-priv/user.d/lakostis'
+ cd /.image
+ stage2=
+ for i in altinst live rescue
+ '[' -f altinst ']'
+ for i in altinst live rescue
+ '[' -f live ']'
+ stage2=live
+ for i in altinst live rescue
+ '[' -f rescue ']'
+ '[' -n live ']'
+ efi=EFI
+ boot=EFI/BOOT
+ cert=EFI/enroll
+ tools=EFI/tools
+ shell=shellx64.efi
+ mkdir -v -p -- EFI/BOOT
mkdir: created directory 'EFI'
mkdir: created directory 'EFI/BOOT'
+ '[' -n altlinux ']'
+ shim_path=EFI/BOOT/bootx64.efi
+ bin_path=EFI/BOOT/grubx64.efi
+ efi_bindir=/usr/lib64/efi
+ kargs='fastboot live lowmem showopts automatic=method:cdrom lang= quiet splash'
+ gfxprefix=/usr/share/gfxboot
+ refind_aux=EFI/refind
+ refind_boot=EFI/refind/refind_x64.efi
+ refind_icons=EFI/refind/icons
+ scan_icon=os_unknown.icns
+ blacklist='shim.efi shim-fedora.efi PreLoader.efi TextMode.efi ebounce.efi GraphicsConsole.efi MokManager.efi HashTool.efi HashTool-signed.efi elilo.efi'
+ '[' -z altlinux ']'
+ copy_shim
+ '[' -n EFI/BOOT/bootx64.efi ']'
+ copy_cert
+ '[' -n altlinux ']'
+ local keyfile=/etc/pki/uefi/altlinux.cer
+ '[' -s /etc/pki/uefi/altlinux.cer ']'
+ mkdir -v -p EFI/enroll
mkdir: created directory 'EFI/enroll'
+ cp -v -pLft EFI/enroll -- /etc/pki/uefi/altlinux.cer
'/etc/pki/uefi/altlinux.cer' -> 'EFI/enroll/altlinux.cer'
+ cp -v -pLf /usr/lib64/efi/shim.efi EFI/BOOT/bootx64.efi
'/usr/lib64/efi/shim.efi' -> 'EFI/BOOT/bootx64.efi'
+ cp -v -pLf /usr/lib64/efi/MokManager.efi EFI/BOOT
'/usr/lib64/efi/MokManager.efi' -> 'EFI/BOOT/MokManager.efi'
+ case "elilo" in
+ copy_elilo
+ cp -v -pLf /usr/lib64/efi/elilo.efi EFI/BOOT/grubx64.efi
'/usr/lib64/efi/elilo.efi' -> 'EFI/BOOT/grubx64.efi'
+ cat
+ '[' elilo '!=' elilo ']'
+ echo '  append="fastboot live lowmem showopts automatic=method:cdrom lang= quiet splash stagename=live"'
+ copy_kernel
+ '[' -s EFI/BOOT/vmlinuz -a -s EFI/BOOT/full.cz ']'
+ cp -v -lpLft EFI/BOOT -- syslinux/alt0/vmlinuz syslinux/alt0/full.cz
'syslinux/alt0/vmlinuz' -> 'EFI/BOOT/vmlinuz'
'syslinux/alt0/full.cz' -> 'EFI/BOOT/full.cz'
+ copy_shell
+ dest=EFI/shellx64.efi
+ src=/usr/lib64/efi/shell.efi
+ '[' '!' -f /usr/lib64/efi/shell.efi ']'
+ copy_mt86
+ dest=EFI/tools
+ mkdir -v -p EFI/tools
mkdir: created directory 'EFI/tools'
+ src=/usr/lib64/efi/memtest86.efi
+ '[' -f /usr/lib64/efi/memtest86.efi ']'
++ du -lsB32k EFI
++ cut -f1
+ imgsize=960
+ img=.efiboot.img
+ dd if=/dev/zero of=.efiboot.img bs=32k count=960
960+0 records in
960+0 records out
31457280 bytes (31 MB) copied, 0.0214136 s, 1.5 GB/s
+ mkfs.fat -v -n 'El Torito' .efiboot.img
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.fat 4.0 (2016-05-06)
.efiboot.img has 255 heads and 63 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 61440 sectors;
drive number 0x80;
filesystem has 2 16-bit FATs and 4 sectors per cluster.
FAT size is 60 sectors, and provides 15321 clusters.
There are 4 reserved sectors.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is 6e9dea2a, volume label El Torito  .
+ echo mtools_skip_check=1
+ '[' -f EFI/shellx64.efi ']'
+ mcopy -v -i .efiboot.img -s EFI ::
Copying EFI
Copying tools
Copying enroll
Copying altlinux.cer
Copying BOOT
Copying full.cz
Copying vmlinuz
Copying elilo.conf
Copying grubx64.efi
Copying MokManager.efi
Copying bootx64.efi
+ hardlink -v -c EFI


Directories 4
Objects 11
IFREG 7
Comparisons 0
Linked 0
saved 0
+ '[' -f shellx64.efi ']'
+ mv .efiboot.img EFI/
+ purge_mt86
+ cd EFI/tools
+ '[' -s memtest86.efi ']'
mki-pack-isoboot: has started executing.
mki-install: has started executing.
...
Не вижу тут никаких проблем, все копируется и создается без ошибок.

-- 
WBR et al.


  reply	other threads:[~2016-10-06 10:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 21:39 Konstantin Lepikhov
2016-10-05 10:30 ` Michael Shigorin
2016-10-05 10:55   ` Konstantin Lepikhov
2016-10-05 10:58     ` Michael Shigorin
2016-10-05 11:06 ` Denis Pynkin
2016-10-05 12:11   ` Michael Shigorin
2016-10-05 18:34     ` Denis Pynkin
2016-10-05 19:01       ` Michael Shigorin
2016-10-06 12:18       ` Andrey Cherepanov
2016-10-06 12:37         ` Sergey V Turchin
2016-10-06 13:02           ` Andrey Cherepanov
2016-10-06 13:06             ` Sergey V Turchin
2016-10-06 13:38               ` Andrey Cherepanov
2016-10-06 13:49                 ` Sergey V Turchin
2016-10-06 12:44         ` Sergey V Turchin
2016-10-05 12:51   ` Konstantin Lepikhov
2016-10-06 10:56     ` Konstantin Lepikhov [this message]
2016-10-06 19:44       ` Michael Shigorin
2016-10-06 19:51       ` [devel-distro] [SOLVED] " Konstantin Lepikhov
2016-10-06  7:33   ` [devel-distro] " Michael Shigorin

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=20161006105630.GA22291@lks.home \
    --to=lakostis@unsafe.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