Bug#989302: mmdebstrap: busybox-based chroot example misses mktemp

2021-05-31 Thread Jochen Sprickerhof

* Johannes Schauer Marin Rodrigues  [2021-05-31 16:34]:

I fixed it like this:

https://gitlab.mister-muffin.de/josch/mmdebstrap/commit/594ea3c72e7af26b680d2bfb696c0271839b731d


Looks good to me, only the merged-/usr may need an extra paragraph as 
the directory is a little non obvious:


--hook-dir=/usr/share/mmdebstrap/hooks/

Alternatively move the setup00-merged-usr.sh to hooks/merged-usr/ maybe?

Cheers Jochen


signature.asc
Description: PGP signature


Bug#989302: mmdebstrap: busybox-based chroot example misses mktemp

2021-05-31 Thread Johannes Schauer Marin Rodrigues
Hi Jochen,

Quoting Jochen Sprickerhof (2021-05-31 15:16:26)
> I just tried the sub-essential busybox-based chroot example from the man page
> on an up to date sid and got:
> 
> /var/lib/dpkg/info/base-passwd.postinst: line 1: mktemp: not found
> 
> Adding mktemp to the setup-hook ln loop fixes it.

thanks! Fixed in git. The more elegant way is indeed to run `busybox --install
-s` in the extract-hook. That's also what is done in the scripts in
/usr/share/mmdebstrap/hooks/busybox that you already discovered.

> In addition it probably makes sense to add something like this below:
> 
> The same can be archived by:
> --hook-dir=/usr/share/mmdebstrap/hooks/busybox
> 
> Or maybe replace the example?
> 
> Similar for the merged-/usr via symlinks example above:
> 
> The same can be archived by:
> --hook-dir=/usr/share/mmdebstrap/hooks/

I fixed it like this:

https://gitlab.mister-muffin.de/josch/mmdebstrap/commit/594ea3c72e7af26b680d2bfb696c0271839b731d

> Thanks for the great tool!

Thank you for your bug report. :)

cheers, josch

signature.asc
Description: signature


Bug#989302: mmdebstrap: busybox-based chroot example misses mktemp

2021-05-31 Thread Jochen Sprickerhof
Package: mmdebstrap
Version: 0.7.5-2.2
Severity: minor

Hi Josch,

I just tried the sub-essential busybox-based chroot example from the man
page on an up to date sid and got:

/var/lib/dpkg/info/base-passwd.postinst: line 1: mktemp: not found

Adding mktemp to the setup-hook ln loop fixes it.

In addition it probably makes sense to add something like this below:

The same can be archived by:
--hook-dir=/usr/share/mmdebstrap/hooks/busybox

Or maybe replace the example?

Similar for the merged-/usr via symlinks example above:

The same can be archived by:
--hook-dir=/usr/share/mmdebstrap/hooks/

Thanks for the great tool!

Cheers Jochen

-- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mmdebstrap depends on:
ii  apt  2.2.3
ii  perl 5.32.1-4
ii  python3  3.9.2-3

Versions of packages mmdebstrap recommends:
ii  arch-test0.17-1
pn  fakechroot   
ii  fakeroot 1.25.3-1.1
ii  gpg  2.2.27-2
pn  libdistro-info-perl  
ii  mount2.36.1-7
ii  uidmap   1:4.8.1-1

Versions of packages mmdebstrap suggests:
ii  apt [apt-transport-https]  2.2.3
pn  apt-transport-tor  
ii  apt-utils  2.2.3
ii  binfmt-support 2.2.1-1
ii  ca-certificates20210119
ii  debootstrap1.0.123
ii  distro-info-data   0.47
ii  dpkg-dev   1.20.9
pn  perl-doc   
pn  proot  
pn  qemu-user  
pn  qemu-user-static   
pn  squashfs-tools-ng  

-- no debconf information