automatic reboot fails with non executable empty systemd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Won't Fix
|
Critical
|
Unassigned |
Bug Description
Steps to reproduce:
Begin with an upgradable image
$ sudo ubuntu-device-flash --revision=-1 core rollling --channel edge -o snappy.img --developer-mode
Launch
$ kvm -m 768 -redir :8022::22 ./snappy.img
Update
$ ssh -p 8022 ubuntu@localhost
$ sudo snappy update
Remove /lib/systemd/
$ sudo mount -o remount,rw /writable/
$ sudo rm /writable/
$ sudo touch /writable/
Reboot. The system hangs and is unable to reboot by itself to the previous partition.
The reported error on boot is:
target filesystem doesn’t have requested /lib/systemd/
/bin/sh: 0: can’t access tty; job control turned off
If the empty /lib/systemd/
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: snappy-robustness |
Failed to reproduce on armhf/15.04, I tried to create a empty systemd that is not 755 and kernel paniced and rebooted.
However I can confirm that it hangs on amd64/rolling: (hd0,gpt2) /EFI/ubuntu/ grub/b/ vmlinuz root=LABEL=system-b ro init=/lib/ systemd/ systemd console=ttyS0 console=tty1 panic=-1 platform/ i8042/serio1/ input/input3
"""
[ 181.700024] reboot: Restarting system
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.0.0-4-generic (buildd@brownie) (gcc version 4.9.3 (Ubuntu 4.9.3-1ubuntu1) ) #7-Ubuntu SMP Thu Jul 9 15:17:01 UTC 2015 (Ubuntu 4.0.0-4.7-generic 4.0.7)
[ 0.000000] Command line: BOOT_IMAGE=
...
[ 3.356557] input: ImExPS/2 Generic Explorer Mouse as /devices/
"""
nothing else.