Ticket #834 (closed defect: worksforme)

Opened 11 years ago

Last modified 10 years ago

upgrade-schroots doesn't work

Reported by: jdreed Owned by:
Priority: high Milestone: Natty Alpha
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:

Description

zulu:~# all-schroots upgrade-schroot
Chroot for distribution lenny-i386-sbuild-source, architecture amd64 not found
Chroot for distribution lenny-i386-sbuild-source, architecture amd64 not found
Chroot for distribution lenny-i386-sbuild-source, architecture amd64 not found

(the message is repeated for each chroot we have).

Change History

comment:1 Changed 11 years ago by jdreed

  • Status changed from new to accepted
  • Owner set to jdreed

Wading through the mess that is the Debian BTS, I came across several bugs references chroot namespaces, and sure enough upgrade-schroot source:natty-amd64-sbuild works just fine.

I think the fix is as simple as the following, but our build system is still a maze of twisty little passages, so I'd like someone else to confirm this before I even commit it.

Index: all-schroots
===================================================================
--- all-schroots	(revision 25034)
+++ all-schroots	(working copy)
@@ -26,8 +26,8 @@
 prog=$1; shift
 
 for code in $DEBIAN_CODES; do
-    $prog ${code}-i386-sbuild-source -- "$@"
-    $prog ${code}-amd64-sbuild-source -- "$@"
+    $prog source:${code}-i386-sbuild -- "$@"
+    $prog source:${code}-amd64-sbuild -- "$@"
 done
 
 fi

comment:2 Changed 11 years ago by jdreed

  • Status changed from accepted to new
  • Owner jdreed deleted

Or not. Apparently source:natty-amd64-sbuild and chroot:natty-amd64-sbuild-source are completely unrelated, or something?

comment:3 Changed 10 years ago by jdreed

  • Status changed from new to closed
  • Resolution set to worksforme

This apparently magically started working again?

I'll note that the manpage claims that both the old and new syntax is ok for now, but that we should switch to "source:"

Source chroots

Some chroot types, for example LVM snapshots and Btrfs snapshots,
provide session-managed copy-on-write snapshots of the chroot. These
also provide a source chroot to allow easy access to the filesystem
used as a source for snapshotting. These are regular chroots as well,
just with the snapshotting disabled. For a chroot named “sid-snapshot”
(i.e. with a fully qualified name of “chroot:sid-snapshot”), there will
also be a corresponding source chroot named “source:sid-snapshot”.
Earlier versions of schroot provided source chroots with a ‘-source’
suffix. These are also provided for compatibility. In this example,
this would be called “chroot:sid-snapshot-source”. These compatibility
names will be dropped in a future version, so programs and scripts
should switch to using the namespace-qualified names rather than the
old suffix.

Note: See TracTickets for help on using tickets.