🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Johannes Schauer Marin Rodrigues Fri, 27 Nov 2026 17:30
Bug#1155557: mmdebstrap needs option to ignore non-empty dir
#6451
Author: Johannes Schauer Marin Rodrigues
Date: Fri, 27 Nov 2026 17:30
68 lines
4200 bytes
Hi,

Am 2026-11-27 17:53, schrieb Thomas Lange:
> I'm doing automated installations. The disks are partitioned, file
> systems are created and mounted. If the user wants to have a directory
> on a different partition (for e.g. /local or /home or /usr/local)
> these subdirectories are already created and mounted before mmdebstrap
> is called.
> Then mmdebstrap refuses to run with
> 
> I: automatically chosen format: directory
> E: /srv/home is not empty

from the docs:

      directory, dir
              A chroot directory will be created in TARGET.  If the 
directory already exists,
              it must either be empty or only contain an empty 
"lost+found" directory.

and then far further down in the man page:

              •   whether the output directory is empty. This check can 
be disabled using
                  --skip=check/empty

I take this as an opportunity to improve the documentation. The docs for 
the directory
output format should probably also mention --skip=check/empty:

     --- a/mmdebstrap
     +++ b/mmdebstrap
     @@ -8902,7 +8902,8 @@ chosen.

      A chroot directory will be created in I<TARGET>.  If the directory 
already
      exists, it must either be empty or only contain an empty 
C<lost+found>
     -directory.  The special I<TARGET> C<-> does not work with this 
format because a
     +directory (unless you supply B<--skip=tar-in/mknod>).  The special 
I<TARGET>
     +C<-> does not work with this format because a
      directory cannot be written to standard output. If you need your 
directory be
      named C<->, then just explicitly pass the relative path to it like 
F<./->.  If
      a directory is chosen as output in any other mode than B<sudo>, 
then its

That being said, you are probably running mmdebstrap as root? You can 
also run mmdebstrap
as the non-root user in unshare mode and still distribute the output 
across multiple
filesystems without ever requiring root privileges by creating and 
filtering a tarball
and using the ability of mke2fs to use a tarball on standard input. 
Using that method we
are creating bootable system images with a separate /boot partition for 
the MNT open
hardware laptop. If you want to get rid of the root requirement, I can 
provide you with
more details.

Thanks!

cheers, josch
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads