Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2018 11:33:29 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Solved. Re: Dualboot and ZFS
Message-ID:  <alpine.BSF.2.21.1803231122360.66427@mail.fig.ol.no>
In-Reply-To: <20180322015043.GA16501@admin.sibptus.transneft.ru>
References:  <20180131082738.GA46395@admin.sibptus.transneft.ru> <547e65d16ef16667f61d88463ca73079@roundcube.fjl.org.uk> <20180319025914.GA57490@admin.sibptus.transneft.ru> <ec1e6976-3385-a66f-5938-ad09abae590f@fechner.net> <20180319171027.GA84127@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803200810380.66427@mail.fig.ol.no> <20180320094625.GA24463@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803201232590.66427@mail.fig.ol.no> <20180321061231.GA73086@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1803210830250.66427@mail.fig.ol.no> <20180322015043.GA16501@admin.sibptus.transneft.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22 Mar 2018 08:50+0700, Victor Sudakov wrote:

> Trond Endrestøl wrote:
>
> > > Why do you need rEFInd at all if your laptop's UEFI environment can
> > > choose which OS to boot? 
> >
> > Unless I want to boot the default, I have to hit F12 every time I want 
> > to boot something else. This is on a Dell Latitude E5530. If I could 
> > persuade the UEFI boot firmware to always present its menu, I wouldn't 
> > need rEFInd at all. It's nice to have something that presents me with 
> > a menu and remembers what I chose the last time and selects that after 
> > a configureable timeout. It's also nice to have additional means 
> > readily available should rEFInd implode.
> 
> Trond, thanks for the enlightenment, I think I grasp the idea. Two
> more questions if you please:

> 1. If I have more than one freebsd-ufs partition, how can I configure
> boot1.efi (AKA /EFI/BOOT/BOOTX64.EFI) to boot the loader from a
> particular partition, not from the first one?

I doubt you can without modifying the source code. Such has never been 
an issue at my end. Maybe someone else will chime in.

> 2. Why are /boot/boot1.efi and /EFI/BOOT/BOOTX64.EFI (extracted from
> boot1.efifat) so different, even different length? They are supposed
> to be one and the same file, aren't they?

It's done this way to simplify the creation of boot1.efifat which is 
the image for the 800K FAT filesystem. Have a look at the Makefiles in 
stand/efi/boot1 in the source tree.

-- 
Trond.
From owner-freebsd-questions@freebsd.org  Fri Mar 23 11:13:23 2018
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A1E4F60E97
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Fri, 23 Mar 2018 11:13:23 +0000 (UTC)
 (envelope-from trond@fagskolen.gjovik.no)
Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no
 [IPv6:2001:700:1100:1:200:ff:fe00:b])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "smtp.fagskolen.gjovik.no",
 Issuer "Fagskolen i Gj??vik" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 17C556E38B
 for <freebsd-questions@freebsd.org>; Fri, 23 Mar 2018 11:13:22 +0000 (UTC)
 (envelope-from trond@fagskolen.gjovik.no)
Received: from mail.fig.ol.no (localhost [127.0.0.1])
 by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id w2NBDITK080844
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
 for <freebsd-questions@freebsd.org>; Fri, 23 Mar 2018 12:13:19 +0100 (CET)
 (envelope-from trond@fagskolen.gjovik.no)
Received: from localhost (trond@localhost)
 by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id w2NBDIZq080841
 for <freebsd-questions@freebsd.org>; Fri, 23 Mar 2018 12:13:18 +0100 (CET)
 (envelope-from trond@fagskolen.gjovik.no)
X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs
Date: Fri, 23 Mar 2018 12:13:18 +0100 (CET)
From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Sender: Trond.Endrestol@fagskolen.gjovik.no
To: FreeBSD questions <freebsd-questions@freebsd.org>
Subject: Re: Solved. Re: Dualboot and ZFS
In-Reply-To: <alpine.BSF.2.21.1803231122360.66427@mail.fig.ol.no>
Message-ID: <alpine.BSF.2.21.1803231156300.66427@mail.fig.ol.no>
References: <20180131082738.GA46395@admin.sibptus.transneft.ru>
 <547e65d16ef16667f61d88463ca73079@roundcube.fjl.org.uk>
 <20180319025914.GA57490@admin.sibptus.transneft.ru>
 <ec1e6976-3385-a66f-5938-ad09abae590f@fechner.net>
 <20180319171027.GA84127@admin.sibptus.transneft.ru>
 <alpine.BSF.2.21.1803200810380.66427@mail.fig.ol.no>
 <20180320094625.GA24463@admin.sibptus.transneft.ru>
 <alpine.BSF.2.21.1803201232590.66427@mail.fig.ol.no>
 <20180321061231.GA73086@admin.sibptus.transneft.ru>
 <alpine.BSF.2.21.1803210830250.66427@mail.fig.ol.no>
 <20180322015043.GA16501@admin.sibptus.transneft.ru>
 <alpine.BSF.2.21.1803231122360.66427@mail.fig.ol.no>
User-Agent: Alpine 2.21 (BSF 202 2017-01-01)
Organization: Fagskolen Innlandet
OpenPGP: url=http://fig.ol.no/~trond/trond.key
MIME-Version: 1.0
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED
 autolearn=unavailable autolearn_force=no version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
X-Content-Filtered-By: Mailman/MimeDel 2.1.25
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Mar 2018 11:13:23 -0000

On Fri, 23 Mar 2018 11:33+0100, Trond Endrestøl wrote:

> > 1. If I have more than one freebsd-ufs partition, how can I configure
> > boot1.efi (AKA /EFI/BOOT/BOOTX64.EFI) to boot the loader from a
> > particular partition, not from the first one?
> 
> I doubt you can without modifying the source code. Such has never been 
> an issue at my end. Maybe someone else will chime in.

This is from uefi(8) on fairly recent stable/11:

           2.   boot1.efi reads boot configuration from /boot.config or
                /boot/config.  Unlike other first-stage boot loaders,
                boot1.efi passes the configuration to the next stage boot
                loader and does not itself act on the contents of the file.
           3.   boot1.efi searches partitions of type freebsd-ufs and
                freebsd-zfs for loader.efi.  The search begins with partitions
                on the device from which boot1.efi was loaded, and continues
                with other available partitions.  If both freebsd-ufs and
                freebsd-zfs partitions exist on the same device the
                freebsd-zfs partition is preferred.  boot1.efi then loads and
                executes loader.efi.

Apparently, there are some options. Using /boot.config or /boot/config 
on the ESP. Using /boot/loader.conf whereever /boot/loader.efi 
resides. Relocating loader.efi to wanted the UFS partition. Note the 
preference towards ZFS when both are present. I don't have any 
experience using either option.

-- 
Trond.
From owner-freebsd-questions@freebsd.org  Fri Mar 23 14:00:52 2018
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id A09CAF6EB4B
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Fri, 23 Mar 2018 14:00:52 +0000 (UTC) (envelope-from as@cmplx.uk)
Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net
 [IPv6:2a02:1658:1::199:1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "jail0199.vps.exonetric.net",
 Issuer "jail0199.vps.exonetric.net" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 36AE4754C8
 for <freebsd-questions@freebsd.org>; Fri, 23 Mar 2018 14:00:52 +0000 (UTC)
 (envelope-from as@cmplx.uk)
Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net
 [178.250.76.108])
 by jail0199.vps.exonetric.net (8.15.2/8.15.2) with ESMTPS id w2NE0pt5086727
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
 for <freebsd-questions@freebsd.org>; Fri, 23 Mar 2018 14:00:51 GMT
 (envelope-from as@jail0199.vps.exonetric.net)
Received: (from as@localhost)
 by jail0199.vps.exonetric.net (8.15.2/8.15.2/Submit) id w2NE0oHR086725
 for freebsd-questions@freebsd.org; Fri, 23 Mar 2018 14:00:50 GMT
 (envelope-from as)
Date: Fri, 23 Mar 2018 14:00:50 +0000
From: Anton Shterenlikht <as@cmplx.uk>
To: freebsd-questions@freebsd.org
Subject: WORKAROUND: Re: texlive missing fonts?
Message-ID: <20180323140050.GA86055@jail0199.vps.exonetric.net>
Mail-Followup-To: freebsd-questions@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.9.2 (2017-12-15)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Mar 2018 14:00:52 -0000

Answering my own question,
in case it might help others:

On Thu, Mar 22, 2018 at 04:39:10PM +0000, as wrote:
> I'm seeing lots of missed fonts:
> 
> 20474701626e> cat missfont.log 
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+420/600 --dpi 420 t1-zi4r-4
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 t1-zi4r-4
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+438/600 --dpi 438 txsy
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 rtxr
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 txex
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+438/600 --dpi 438 rtxr
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 t1-zi4b-4
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 rtxmi
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 txsy
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 txsyc
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 txsyb
> mktexpk --mfmode ljfour --bdpi 600 --mag 0+540/600 --dpi 540 txsya
> 
> (This is from a conference template which uses lots of fonts)
> 
> I see that all these are in fact installed by
> texlive-texmf, e.g.
> 
> # pkg info -xl texlive-texmf|grep t1-zi4r-4
>         /usr/local/share/texmf-dist/fonts/tfm/public/inconsolata/ot1-zi4r-4.tfm
>         /usr/local/share/texmf-dist/fonts/tfm/public/inconsolata/t1-zi4r-4.tfm
> # pkg info -xl texlive-texmf|grep t1-zi4b-4
>         /usr/local/share/texmf-dist/fonts/tfm/public/inconsolata/ot1-zi4b-4.tfm
>         /usr/local/share/texmf-dist/fonts/tfm/public/inconsolata/t1-zi4b-4.tfm
> 
> and so on.
> 
> I tried to run updmap-sys:
> 
> # updmap-sys --enable Map inconsolata.map
> updmap will read the following updmap.cfg files (in precedence order):
>   /usr/local/share/texmf-config/web2c/updmap.cfg
> updmap may write changes to the following updmap.cfg file:
>   /usr/local/share/texmf-config/web2c/updmap.cfg
> dvips output dir: "/usr/local/share/texmf-var/fonts/map/dvips/updmap"
> pdftex output dir: "/usr/local/share/texmf-var/fonts/map/pdftex/updmap"
> dvipdfmx output dir: "/usr/local/share/texmf-var/fonts/map/dvipdfmx/updmap"
> updmap [ERROR]: The following map file(s) couldn't be found:
> updmap [ERROR]:         inconsolata.map (in /usr/local/share/texmf-config/web2c/updmap.cfg)
> updmap [ERROR]: Did you run mktexlsr?
> 
>         You can disable non-existent map entries using the option
>           --syncwithtrees.
> 
> # 
> 
> # updmap-sys --listmaps
> updmap will read the following updmap.cfg files (in precedence order):
>   /usr/local/share/texmf-config/web2c/updmap.cfg
> updmap may write changes to the following updmap.cfg file:
>   /usr/local/share/texmf-config/web2c/updmap.cfg
> Map zi4.map enabled in /usr/local/share/texmf-config/web2c/updmap.cfg
> Map newtx.map enabled in /usr/local/share/texmf-config/web2c/updmap.cfg
> Map libertine.map enabled in /usr/local/share/texmf-config/web2c/updmap.cfg
> Map txfonts.map enabled in /usr/local/share/texmf-config/web2c/updmap.cfg
> Map inconsolata.map enabled in /usr/local/share/texmf-config/web2c/updmap.cfg
> # 
> 
> 
> Am I missing some steps?
> Or has something gone wrong in my installation?

After another round of searching online,
I repeatedly met advice to rm ~/.texlive2015.
I found that I have this directory on my
account, and also on root, i.e. /root/.texlive2015.

I deleted both these directories, and then run

	updmap-sys
	mktexlsr

and now all seems fine, all fonts are found.

Probably I had some outdated data in one or both
of these directories.

However, I still have these maps, added with

	updmap-sys --enable Map <mapname>.map

# cat /usr/local/share/texmf-config/web2c/updmap.cfg
Map libertine.map
Map newtx.map
Map txfonts.map
Map zi4.map
#

If try to remove these maps from 
	/usr/local/share/texmf-config/web2c/updmap.cfg
I still get missing font errors.

I guess since all these fonts are installed by
print/texlive-texmf, something must be wrong
in the configuration, i.e. in registering these map files.

So, while this is a workaround,
I'm not sure this is a solution.

Thanks

Anton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.1803231122360.66427>