Package: schroot
Version: 1.6.13-3+b2
Severity: normal
User: stor...@unige.ch
Usertags: unige.ch-packaging

Hi there,

`man schroot` has the following example in the "Sessions" subsection:
```

       Note that the Session Managed option is set to ‘true’.  This is
       a requirement in order to use session manage‐ ment, and is
       supported by most chroot types.  Next, we will create a new
       session:

       % schroot -b -c sid-snap↵
       sid-snap-46195b04-0893-49bf-beb8-0d4ccc899f0f

       The session ID of the newly-created session is returned on
       standard output.  It is common to store it like this:

       % SESSION=$(schroot -b -c sid-snap)↵
       % echo $SESSION↵
       sid-snap-46195b04-0893-49bf-beb8-0d4ccc899f0f

       The session may be used just like any normal chroot.  This is
       what the session looks like:

       % schroot -i -c sid-snap-46195b04-0893-49bf-beb8-0d4ccc899f0f↵
         ——— Session ———
         Name                   sid-snap-46195b04-0893-49bf-beb8-0d4ccc899f0f
         Description            Debian sid snapshot
         Type                   lvm-snapshot
         Priority               3
[...]
         Mount Location         
/var/lib/schroot/mount/sid-snap-46195b04-0893-49bf-beb8-0d4ccc899f0f
         Path                   
/var/lib/schroot/mount/sid-snap-46195b04-0893-49bf-beb8-0d4ccc899f0f
```

However, the above example does not work:
```
root@harlock:~# SCHROOT_SESSION_ID="$(schroot -b -c bookworm-amd64-sbuild)"
root@harlock:~# echo "${SCHROOT_SESSION_ID}"
bookworm-amd64-sbuild-638d6de1-c6b8-4fe8-9ce9-a9d0717c7397
root@harlock:~# schroot -i -c "${SCHROOT_SESSION_ID}"
E: bookworm-amd64-sbuild-638d6de1-c6b8-4fe8-9ce9-a9d0717c7397: Chroot not found
root@harlock:~# schroot -l --all
chroot:bookworm-amd64-sbuild
session:bookworm-amd64-sbuild-638d6de1-c6b8-4fe8-9ce9-a9d0717c7397
source:bookworm-amd64-sbuild
root@harlock:~# schroot -r -c "${SCHROOT_SESSION_ID}" -- uname -sr
Linux 6.5.0-0.deb12.4-amd64
root@harlock:~# 
```

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldoldstable'), (500, 
'stable'), (500, 'oldstable'), (100, 'bookworm-fasttrack'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-0.deb12.4-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages schroot depends on:
ii  debconf [debconf-2.0]           1.5.82
ii  libboost-filesystem1.74.0       1.74.0+ds1-21
ii  libboost-iostreams1.74.0        1.74.0+ds1-21
ii  libboost-program-options1.74.0  1.74.0+ds1-21
ii  libc6                           2.36-9+deb12u4
ii  libgcc-s1                       12.2.0-14
ii  libpam0g                        1.5.2-6+deb12u1
ii  libstdc++6                      12.2.0-14
ii  libuuid1                        2.38.1-5+b1
ii  schroot-common                  1.6.13-3
ii  sysvinit-utils [lsb-base]       3.06-4

schroot recommends no packages.

Versions of packages schroot suggests:
pn  aufs-tools | unionfs-fuse  <none>
pn  btrfs-progs                <none>
ii  bzip2                      1.0.8-5+b1
ii  debootstrap                1.0.128+nmu2+deb12u1
ii  lvm2                       2.03.16-2
pn  qemu-user-static           <none>
ii  xz-utils                   5.4.1-0.2
pn  zfsutils-linux             <none>
pn  zstd                       <none>

-- debconf information:
  schroot/bad-names:

-- 
Dr. Luca Capello
Ingénieur stockage | Recherche et Information Scientifique
Division du Système et des Technologies de l'Information et de la Communication
Université de Genève | 66, Boulevard Carl-Vogt | 1205 Genève
Tél +41 22 379 77 69 | Bureau D624
mailto:luca.cape...@unige.ch

Attachment: signature.asc
Description: PGP signature

Reply via email to