<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Roger,<br>
    <br>
    I am running into the same problem here, trying to setup a wheezy
    build environment.<br>
    <blockquote type="cite">
      <pre class="message">Note that the "-v" option will make schroot log all mount operations
during session creation, and umount operations during cleanup.  I'd
recommend running with this to debug what's going on.
</pre>
    </blockquote>
    Here you go:<br>
    <br>
    <tt>torsten@pulsar:~$ schroot -v -c wheezy-amd64</tt><tt><br>
    </tt><tt>I: Executing ‘00check setup-start ok’</tt><tt><br>
    </tt><tt>I: 00check: STAGE=setup-start</tt><tt><br>
    </tt><tt>I: 00check: STATUS=ok</tt><tt><br>
    </tt><tt>I: 00check: AUTH_GID=1000</tt><tt><br>
    </tt><tt>I: 00check: AUTH_HOME=/home/torsten</tt><tt><br>
    </tt><tt>I: 00check: AUTH_RGID=1000</tt><tt><br>
    </tt><tt>I: 00check: AUTH_RGROUP=torsten</tt><tt><br>
    </tt><tt>I: 00check: AUTH_RUID=1000</tt><tt><br>
    </tt><tt>I: 00check: AUTH_RUSER=torsten</tt><tt><br>
    </tt><tt>I: 00check: AUTH_SHELL=/bin/bash</tt><tt><br>
    </tt><tt>I: 00check: AUTH_UID=1000</tt><tt><br>
    </tt><tt>I: 00check: AUTH_USER=torsten</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_ALIAS=wheezy-amd64</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_DESCRIPTION=wheezy-amd64 (session
      chroot)</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_DEVICE=/dev/vgsys/wheezy_amd64_chroot</tt><tt><br>
    </tt><tt>I: 00check:
CHROOT_LVM_SNAPSHOT_DEVICE=/dev/vgsys/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 00check:
CHROOT_LVM_SNAPSHOT_NAME=wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_LVM_SNAPSHOT_OPTIONS=--size 4G</tt><tt><br>
    </tt><tt>I: 00check:
CHROOT_MOUNT_DEVICE=/dev/vgsys/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 00check:
CHROOT_MOUNT_LOCATION=/var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_MOUNT_OPTIONS=-o noatime</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_NAME=wheezy-amd64</tt><tt><br>
    </tt><tt>I: 00check:
CHROOT_PATH=/var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_PROFILE=sbuild</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_PROFILE_DIR=/etc/schroot/sbuild</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_SESSION_CLONE=false</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_SESSION_CREATE=false</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_SESSION_PURGE=true</tt><tt><br>
    </tt><tt>I: 00check: CHROOT_TYPE=lvm-snapshot</tt><tt><br>
    </tt><tt>I: 00check: DATA_DIR=/usr/share/schroot</tt><tt><br>
    </tt><tt>I: 00check: LIBEXEC_DIR=/usr/lib/x86_64-linux-gnu/schroot</tt><tt><br>
    </tt><tt>I: 00check: MOUNT_DIR=/var/lib/schroot/mount</tt><tt><br>
    </tt><tt>I: 00check:
      PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</tt><tt><br>
    </tt><tt>I: 00check: PID=18402</tt><tt><br>
    </tt><tt>I: 00check: PLATFORM=linux</tt><tt><br>
    </tt><tt>I: 00check: PWD=/</tt><tt><br>
    </tt><tt>I: 00check:
      SESSION_ID=wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 00check: SETUP_CONFIG=/etc/schroot/sbuild/config</tt><tt><br>
    </tt><tt>I: 00check: SETUP_COPYFILES=/etc/schroot/sbuild/copyfiles</tt><tt><br>
    </tt><tt>I: 00check: SETUP_DATA_DIR=/usr/share/schroot/setup</tt><tt><br>
    </tt><tt>I: 00check: SETUP_FSTAB=/etc/schroot/sbuild/fstab</tt><tt><br>
    </tt><tt>I: 00check:
      SETUP_NSSDATABASES=/etc/schroot/sbuild/nssdatabases</tt><tt><br>
    </tt><tt>I: 00check: SYSCONF_DIR=/etc/schroot</tt><tt><br>
    </tt><tt>I: 00check: VERBOSE=verbose</tt><tt><br>
    </tt><tt>I: Executing ‘05btrfs setup-start ok’</tt><tt><br>
    </tt><tt>I: Executing ‘05file setup-start ok’</tt><tt><br>
    </tt><tt>I: Executing ‘05lvm setup-start ok’</tt><tt><br>
    </tt><tt>E: 05lvm:     Setting logging type to disk</tt><tt><br>
    </tt><tt>E: 05lvm:     Setting chunksize to 4.00 KiB.</tt><tt><br>
    </tt><tt>E: 05lvm:     Finding volume group "vgsys"</tt><tt><br>
    </tt><tt>E: 05lvm:     Archiving volume group "vgsys" metadata
      (seqno 290).</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating logical volume
      wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating volume group backup
      "/etc/lvm/backup/vgsys" (seqno 291).</tt><tt><br>
    </tt><tt>E: 05lvm:     activation/volume_list configuration setting
      not defined: Checking only host tags for
      vgsys/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315</tt><tt><br>
    </tt><tt>E: 05lvm:     Loading
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315
      table (253:30)</tt><tt><br>
    </tt><tt>E: 05lvm:     Resuming
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315
      (253:30)</tt><tt><br>
    </tt><tt>E: 05lvm:     Initializing 4.00 KiB of logical volume
      "vgsys/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315" with
      value 0.</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating logical volume snapshot0</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating vgsys-wheezy_amd64_chroot-real</tt><tt><br>
    </tt><tt>E: 05lvm:     Loading vgsys-wheezy_amd64_chroot-real table
      (253:31)</tt><tt><br>
    </tt><tt>E: 05lvm:     Loading vgsys-wheezy_amd64_chroot table
      (253:29)</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315-cow</tt><tt><br>
    </tt><tt>E: 05lvm:     Loading
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315-cow
      table (253:32)</tt><tt><br>
    </tt><tt>E: 05lvm:     Resuming
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315-cow
      (253:32)</tt><tt><br>
    </tt><tt>E: 05lvm:     Loading
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315
      table (253:30)</tt><tt><br>
    </tt><tt>E: 05lvm:     Suspending vgsys-wheezy_amd64_chroot (253:29)
      with filesystem sync with device flush</tt><tt><br>
    </tt><tt>E: 05lvm:     Suspending vgsys-wheezy_amd64_chroot-real
      (253:31) with filesystem sync with device flush</tt><tt><br>
    </tt><tt>E: 05lvm:     Loading
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315-cow
      table (253:32)</tt><tt><br>
    </tt><tt>E: 05lvm:     Suppressed
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315-cow
      (253:32) identical table reload.</tt><tt><br>
    </tt><tt>E: 05lvm:     Resuming vgsys-wheezy_amd64_chroot-real
      (253:31)</tt><tt><br>
    </tt><tt>E: 05lvm:     Resuming
      vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315
      (253:30)</tt><tt><br>
    </tt><tt>E: 05lvm:     Resuming vgsys-wheezy_amd64_chroot (253:29)</tt><tt><br>
    </tt><tt>E: 05lvm:     Creating volume group backup
      "/etc/lvm/backup/vgsys" (seqno 292).</tt><tt><br>
    </tt><tt>I: 05lvm:   Logical volume
      "wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315" created</tt><tt><br>
    </tt><tt>I: Executing ‘05union setup-start ok’</tt><tt><br>
    </tt><tt>I: Executing ‘10mount setup-start ok’</tt><tt><br>
    </tt><tt>I: 10mount: Mounting
      /dev/vgsys/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315 on
      /var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 10mount: -v -o noatime
      /dev/vgsys/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315
      /var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315</tt><tt><br>
    </tt><tt>I: 10mount: mount: you didn't specify a filesystem type for
/dev/mapper/vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315</tt><tt><br>
    </tt><tt>I: 10mount:        I will try type ext4</tt><tt><br>
    </tt><tt>I: 10mount:
      /dev/mapper/vgsys-wheezy--amd64--6838bfa5--635a--41ee--a787--4f973109b315
      on
      /var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315
      type ext4 (rw,noatime)</tt><tt><br>
    </tt><tt>I: 10mount: /proc on
      /var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315/proc
      type none (rw,bind)</tt><tt><br>
    </tt><tt>I: 10mount: /sys on
      /var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315/sys
      type none (rw,bind)</tt><tt><br>
    </tt><tt>I: 10mount: /dev/pts on
      /var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315/dev/pts
      type none (rw,bind)</tt><tt><br>
    </tt><tt>E: 10mount: E: Failed to resolve path
      “/var/lib/schroot/mount/wheezy-amd64-6838bfa5-635a-41ee-a787-4f973109b315/dev/shm”:
      Not a directory</tt><tt><br>
    </tt><tt>I: Executing ‘99check setup-stop fail’</tt><br>
    <blockquote type="cite">
      <pre class="message">Simply removing the /dev/shm link inside the chroot and making it a
directory should make things work.</pre>
    </blockquote>
    Trying it. BTW: This stopped mk-sbuild in my case, but I think I can
    continue the setup by just calling /finish.sh in the chroot after
    fixing this.<br>
    <br>
    This is in the chroot:<br>
    <blockquote><tt>torsten@pulsar:/mnt/sbuild$ ls -l dev/shm</tt><br>
      <tt>lrwxrwxrwx 1 root root 8 Aug 29 23:52 dev/shm -> /run/shm</tt><br>
      <tt>torsten@pulsar:/mnt/sbuild$ sudo rm dev/shm </tt><br>
      <tt>torsten@pulsar:/mnt/sbuild$ sudo mkdir dev/shm</tt><br>
      <tt>torsten@pulsar:/mnt/sbuild$ sudo chmod 1777 dev/shm/</tt><br>
    </blockquote>
    That actually fixed it:<br>
    <tt>I: 10mount: Mounting
      /dev/vgsys/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593 on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593</tt><tt><br>
    </tt><tt>I: 10mount: -v -o noatime
      /dev/vgsys/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593</tt><tt><br>
    </tt><tt>I: 10mount: mount: you didn't specify a filesystem type for
/dev/mapper/vgsys-wheezy--amd64--b05358bb--b4c6--4ad6--a0f4--3d457d4f7593</tt><tt><br>
    </tt><tt>I: 10mount:        I will try type ext4</tt><tt><br>
    </tt><tt>I: 10mount:
      /dev/mapper/vgsys-wheezy--amd64--b05358bb--b4c6--4ad6--a0f4--3d457d4f7593
      on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593
      type ext4 (rw,noatime)</tt><tt><br>
    </tt><tt>I: 10mount: /proc on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593/proc
      type none (rw,bind)</tt><tt><br>
    </tt><tt>I: 10mount: /sys on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593/sys
      type none (rw,bind)</tt><tt><br>
    </tt><tt>I: 10mount: /dev/pts on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593/dev/pts
      type none (rw,bind)</tt><tt><br>
    </tt><tt>I: 10mount: tmpfs on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593/dev/shm
      type tmpfs (rw)</tt><tt><br>
    </tt><tt>I: 10mount: /var/lib/sbuild/build on
      /var/lib/schroot/mount/wheezy-amd64-b05358bb-b4c6-4ad6-a0f4-3d457d4f7593/build
      type none (rw,bind)</tt><tt><br>
    </tt><tt>I: Executing ‘15binfmt setup-start ok’</tt><tt><br>
    </tt><tt>I: Executing ‘15killprocs setup-start ok’</tt><tt><br>
    </tt><tt>[...]</tt><tt><br>
    </tt><br>
    Thank you!<br>
    <br>
    Greetings, Torsten<br>
    <br>
  </body>
</html>