automatic reboot fails with zero size initrd in bbb
Bug #1480248 reported by
Federico Gimenez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Tested on rolling/edge #119 beagleboneblack. Steps to reproduce:
Begin with an upgradable image
$ sudo ubuntu-device-flash --revion -1 core --channel=edge --oem beagleblack --developer-mode -o bbb.img rolling
Put the image in a sd card and boot
$ sudo dd if=./bbb.img of=/dev/<sd-dev> bs=32M
Update
$ ssh ubuntu@<bbb-ip>
$ sudo snappy update
Remove the initrd file in the other partition and create a zero size file:
$ sudo rm /boot/uboot/
$ sudo touch /boot/uboot/
Reboot
Related branches
lp:~mvo/snappy/lp1480248-test-reenable
Approved
for merging
into
lp:~snappy-dev/snappy/snappy-moved-to-github
- Leo Arias (community): Approve
- Federico Gimenez (community): Needs Fixing
-
Diff: 16 lines (+0/-7)1 file modified_integration-tests/tests/failover_zero_size_file_test.go (+0/-7)
lp:~mvo/snappy-hub/lp1480248-norootwait
- Oliver Grawert: Approve
-
Diff: 26 lines (+1/-2)2 files modifiedbeagleblack/meta/package.yaml (+1/-1)
beagleblack/uboot.env.in (+0/-1)
tags: | added: snappy-robustness |
Changed in snappy: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
I can confirm this, here is the output I see: am335x- boneblack. dtb
"""
reading b/vmlinuz
6517632 bytes read in 382 ms (16.3 MiB/s)
reading b/initrd.img
0 bytes read in 5 ms (0 Bytes/s)
reading b/dtbs/
30025 bytes read in 13 ms (2.2 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x637380 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 90000000, end 90000000 ... OK
Loading Device Tree to 8fff5000, end 8ffff548 ... OK
Starting kernel ... by-label/ system- b...
...
[ 1.664150] sr_init: platform driver register failed for SR
[ 1.675159] ALSA device list:
[ 1.678350] No soundcards found.
[ 1.682530] md: Waiting for all devices to be available before autodetect
[ 1.689717] md: If you don't use raid, use raid=noautodetect
[ 1.696746] md: Autodetecting RAID arrays.
[ 1.701125] md: Scanned 0 and added 0 devices.
[ 1.705791] md: autorun ...
[ 1.708709] md: ... autorun DONE.
[ 1.712487] Waiting for root device /dev/disk/
""""
and then it hangs forever.
This looks like a kernel issue to me, i.e. it should error/panic on a invalid initrd.img.