[Bug 1320534] Re: sbuild fails under systemd-boot with /dev/shm tmpfs mount

2014-07-30 Thread Dimitri John Ledkov
On fresh Utopic host (VM, server install):

$ sudo apt-get update; sudo apt-get install ubuntu-dev-tools systemd haveged
$ mk-sbuild utopic
relogin
$ mk-sbuild utopic
$ sbuild-update --keygen
$ pull-lp-source hello
$ sbuild -Ad utopic *.dsc

# boot with init=/lib/systmed/systemd

$ sbuild -Ad utopic *.dsc

Fails with
"E: 10mount: E: Failed to resolve path "./dev/shm": Not a directory"

/run/shm does not exsit.

This is a bug in systmed, until we support booting with either upstart
or systemd "/run/shm" should continue to be present.

Specifically, systemd, unlike mountall does not appear to support and
match Ubuntu default mount points as specified in /lib/init/fstab.

** Summary changed:

- sbuild fails under systemd-boot with /dev/shm tmpfs mount
+ systemd does not honor Ubuntu default mountpoints (as listed in 
/lib/init/fstab by upstart/mountall)

** Package changed: schroot (Ubuntu) => systemd (Ubuntu)

** Changed in: systemd (Ubuntu)
   Status: Invalid => Confirmed

** Also affects: mountall (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: mountall (Ubuntu)
   Status: New => Confirmed

** Description changed:

- I had to comment out from /etc/schroot/sbuild/fstab:
- #tmpfs   /dev/shmtmpfs   defaults0   0
- 
- otherwise sbuild is failing for me. Is there a solution to keep
- sbuild/schroot working unmodified under both systemd and upstart?
+ systemd does not honor ubuntu default mountpoints as listed in
+ /lib/init/fstab

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  systemd does not honor Ubuntu default mountpoints (as listed in
  /lib/init/fstab by upstart/mountall) ... well just /run/shm is missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1320534] Re: sbuild fails under systemd-boot with /dev/shm tmpfs mount

2014-07-30 Thread Martin Pitt
Settled on IRC: This needs "profile=sbuild" in the chroot.d/*
configuration, then schroot will use the sbuild/fstab instead of the
default/fstab. Then I get:

E: 10mount: E: Failed to resolve path “/var/lib/schroot/mount/sid-
amd64-3471b9f9-d710-47ea-b735-029f4b1c1315/dev/shm”: Not a directory

But this isn't quite the fault of systemd -- if your schroot has a
broken dev/shm then /dev/ or /dev/shm/ won't be a directory to mount on.
If you additionally bind-mount /dev, it works fine:

/dev/devnonerw,bind 0   0
tmpfs   /dev/shmtmpfs   defaults0   0

Or change your schroot to have a /dev/shm/ directory. It seems mk-sbuild
by default creates them like that:

$ ls -ld /home/martin-scratch/schroot/sid-amd64/dev/shm
lrwxrwxrwx 1 root root 8 Mai  7  2013 
/home/martin-scratch/schroot/sid-amd64/dev/shm -> /run/shm

Thus it can't mount something onto a symlink.

** Changed in: schroot (Ubuntu)
   Status: Incomplete => Invalid

** Tags removed: systemd-boot

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot with /dev/shm tmpfs mount

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1320534] Re: sbuild fails under systemd-boot with /dev/shm tmpfs mount

2014-07-30 Thread Martin Pitt
This really doesn't look specific to the init system, thus dropping the
systemd-boot tag.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot with /dev/shm tmpfs mount

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1320534] Re: sbuild fails under systemd-boot

2014-07-30 Thread Martin Pitt
I can't reproduce this on current utopic with systemd 208 (in -proposed,
as 204 doesn't work any more). I uncommented the /dev/shm/ entry from
/etc/schroot/default/fstab, verified that in "schroot -c sid" (or
utopic) I have a bind-mount /dev/shm. sbuild also works:

apt-get source pmount
sbuild -d sid pmount_0.9.23-3.dsc

During that I have

tmpfs on /var/lib/schroot/mount/sid-
amd64-b1b3ec65-e048-4091-b7b0-cf942893d6d3/dev/shm type tmpfs
(rw,nosuid,nodev)

So this either got fixed in the meantime, or there's something different
in your configuration? Could you test again on current utopic, please?
Thanks!

** Changed in: schroot (Ubuntu)
   Status: New => Incomplete

** Summary changed:

- sbuild fails under systemd-boot
+ sbuild fails under systemd-boot with /dev/shm tmpfs mount

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot with /dev/shm tmpfs mount

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1320534] Re: sbuild fails under systemd-boot

2014-06-02 Thread Martin Pitt
For the record, I've used schroot/sbuild under systemd for weeks now.
Dimitri, is this still happening for you under current utopic?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1320534] Re: sbuild fails under systemd-boot

2014-05-18 Thread Dimitri John Ledkov
** Attachment added: "sysvinit_2.88dsf-41ubuntu13_amd64-20140518-2308.build"
   
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+attachment/4115227/+files/sysvinit_2.88dsf-41ubuntu13_amd64-20140518-2308.build

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1320534] Re: sbuild fails under systemd-boot

2014-05-18 Thread Dimitri John Ledkov
Build-log attached showing the problem, with stock
/etc/schroot/sbuild/fstab & booted using systemd.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1320534] Re: sbuild fails under systemd-boot

2014-05-18 Thread Roger Leigh
There is no solution at present; these are generated at buildtime for
the host OS, so don't vary at runtime.  That said, it would help to know
what's different between upstart and systemd here.  What's failing
exactly, and why?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320534

Title:
  sbuild fails under systemd-boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/1320534/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs