Control: tags -1 + patch
Attached patch implements this feature. Cheers, Luca
diff --git a/bin/sbuild-createchroot b/bin/sbuild-createchroot index 3cd6812..1026a77 100755 --- a/bin/sbuild-createchroot +++ b/bin/sbuild-createchroot @@ -36,6 +36,9 @@ sub setup { if -f '/etc/apt/trusted.gpg'; my %createchroot_keys = ( + 'CHROOT_SUFFIX' => { + DEFAULT => '-sbuild' + }, 'FOREIGN' => { DEFAULT => 0 }, @@ -89,6 +92,9 @@ sub set_options { my $self = shift; $self->add_options( + "chroot-suffix=s" => sub { + $self->set_conf('CHROOT_SUFFIX', $_[1]); + }, "arch=s" => sub { $self->set_conf('BUILD_ARCH', $_[1]); }, @@ -250,7 +256,7 @@ dump_file("${target}/etc/apt/sources.list"); print "I: Please add any additional APT sources to ${target}/etc/apt/sources.list\n"; # Write out schroot chroot configuration. -my $chrootname = "${suite}-" . $conf->get('BUILD_ARCH') . "-sbuild"; +my $chrootname = "${suite}-" . $conf->get('BUILD_ARCH') . $conf->get('CHROOT_SUFFIX'); # Determine the schroot chroot configuration to use. my $config_entry; diff --git a/man/sbuild-createchroot.8.in b/man/sbuild-createchroot.8.in index f79eaed..45de4e8 100644 --- a/man/sbuild-createchroot.8.in +++ b/man/sbuild-createchroot.8.in @@ -22,6 +22,7 @@ sbuild\-createchroot \- create sbuild chroot .RB [ \-h \[or] \-\-help " \[or] " \-V \[or] \-\-version ] .RB [ \-\-verbose ] .RB [ \-\-arch=\fIarch\fP ] +.RB [ \-\-chroot-suffix=\fIsuffix\fP ] .RB [ \-\-foreign ] .RB [ \-\-resolve-deps " \[or] " \-\-no-resolve-deps ] .RB [ \-\-keep-debootstrap-dir ] @@ -88,6 +89,9 @@ directly to debootstrap. Set the target architecture. This may be used if dpkg is not already installed. See also \fI\-\-foreign\fP, below. .TP +.BR \-\-chroot-suffix=\fIsuffix\fP +Add a custom suffix to the chroot name. Defaults to '-schroot'. +.TP .BR \-\-foreign Only perform the initial unpack phase of bootstrapping. This is required if the target and host architectures do not match. Note that debootstrap requires