[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] Creating a chroot for cross-building lmi
From: |
Greg Chicares |
Subject: |
Re: [lmi] Creating a chroot for cross-building lmi |
Date: |
Sun, 17 May 2020 15:40:04 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 2020-05-16 22:03, Greg Chicares wrote:
[...debootstrap options]
> - I chose 'sid' because I know I don't have it cached anywhere.
> - I specified '--variant=minbase' because it should be smallest (and
> who knows, it might be as good for building lmi as the default).
'--variant=minbase' does have some benefit: for example, it
excludes cron, fdisk, and nano, none of which are really
needed in a chroot. Omitting it causes half again as much
stuff to be downloaded:
#rm -rf /tmp/sid-chroot ; mkdir -p /tmp/sid-chroot ; time debootstrap
--arch=amd64 --cache-dir=/tmp/sidcache --variant=minbase --include=zsh sid
/tmp/sid-chroot 2>&1 |tee siderr |less -S
debootstrap --arch=amd64 --cache-dir=/tmp/sidcache --variant=minbase sid 2>
32.45s user 9.62s system 62% cpu 1:07.29 total
tee siderr 0.01s user 0.01s system 0% cpu 1:07.29 total
less -S 0.02s user 0.01s system 0% cpu 1:47.13 total
#du -sb /tmp/sidcache
38957612 /tmp/sidcache
#rm -rf /tmp/sid-chroot ; mkdir -p /tmp/sid-chroot ; time debootstrap
--arch=amd64 --cache-dir=/tmp/sidcache --include=zsh sid /tmp/sid-chroot 2>&1
|tee siderr |less -S
debootstrap --arch=amd64 --cache-dir=/tmp/sidcache --include=zsh sid 2>&1
52.81s user 14.53s system 52% cpu 2:08.77 total
tee siderr 0.00s user 0.04s system 0% cpu 2:08.77 total
less -S 0.03s user 0.01s system 0% cpu 2:36.15 total
#du -sb /tmp/sidcache
56839516 /tmp/sidcache
56839516 / 38957612 = 1.459
Incidentally:
time some_command 2>&1 |less
gives only the total time, including time spent in 'less', so
it's not very useful; but with
time some_command 2>&1 |tee log_file |less -S
zsh prints a line with 'time' output for the command only.
I'm really glad I've stumbled across that.
BTW, at least with 'sid', I get this diagnostic numerous times:
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
even though I'd already done
dpkg --add-architecture i386
as recommended here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739081#10
before doing
apt-get install wine
so I'll try something like
- apt-get install wine
+ apt-get install wine wine32
if the problem occurs with a fresh 'bullseye' chroot.