Cannot install packages that require initrd re-generation on touch devices without proper flash-kernel support and kernel package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bootchart (Ubuntu) |
Invalid
|
Critical
|
Oliver Grawert | ||
phablet-tools (Ubuntu) |
Fix Released
|
Critical
|
Oliver Grawert |
Bug Description
I reported a bug regarding inability to install bootchart on a specific device. This report removes the private details.
When I try to install bootchart on a krillin, I get this:
phablet@
Reading package lists... Done
Building dependency tree
Reading state information... Done
bootchart is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up bootchart (0.90.2-8ubuntu2) ...
update-initramfs: Generating /boot/initrd.
dpkg: warning: version 'touch' has bad syntax: version number does not start with digit
grep: /boot/config-touch: No such file or directory
WARNING: missing /lib/modules/touch
Device driver support needs thus be built-in linux image!
depmod: FATAL: touch: not absolute path.
depmod: ERROR: could not open directory /tmp/mkinitramf
depmod: FATAL: could not search modules: No such file or directory
E: No boot partition found !
run-parts: /etc/initramfs/
dpkg: error processing package bootchart (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bootchart
E: Sub-process /usr/bin/dpkg returned an error code (1)
Related branches
- Christopher Lee (community): Approve
- Ricardo Salveti (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 40 lines (+9/-5)1 file modifiedphablet-bootchart (+9/-5)
Changed in bootchart (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Confirmed |
assignee: | nobody → Oliver Grawert (ogra) |
summary: |
- Cannot install bootchart on touch + Cannot install packages that require initrd re-generation on touch + devices without proper flash-kernel support and kernel package |
the issue here is that bootchart asks for initrd re-generation during package install, but krillin has neither a supported kernel package nor any support in flash-kernel to install the same (which would be a requirement for a kernel package)
what we can do here, since the initrd bootchart collection does not seem to work with android kernels anyway is to export FLASH_KERNEL_ SKIP=true before installing it, to simply ignore the flashing of the intrd ... phablet-bootchart will also take this into account in the next iteration ... if you dont use phablet-bootchart (like agreed for testing during trusty timeframe when phablet-bootchart was developed with CI to cover this test case), please make sure your installation script does run this export before apt install the package.