Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-1017-raspi2
WARNING: missing /lib/modules/4.4.0-1017-raspi2
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-1017-raspi2: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cryptsetup: WARNING: could not determine root device from /etc/fstab
Warning: root device does not exist
Press Ctrl-C to abort build, or Enter to continue
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
depmod: WARNING: could not open /var/tmp/mkinitramfs_qsoaTD/lib/modules/4.4.0-1017-raspi2/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_qsoaTD/lib/modules/4.4.0-1017-raspi2/modules.builtin: No such file or directory
Unsupported platform.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.122ubuntu8.1) ... img-4.4. 0-1017- raspi2 4.4.0-1017- raspi2 4.4.0-1017- raspi2: No such file or directory
update-initramfs: Generating /boot/initrd.
WARNING: missing /lib/modules/
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/
depmod: FATAL: could not search modules: No such file or directory
cryptsetup: WARNING: could not determine root device from /etc/fstab
Warning: root device does not exist
Press Ctrl-C to abort build, or Enter to continue
W: mdadm: /etc/mdadm/ mdadm.conf defines no arrays. mkinitramfs_ qsoaTD/ lib/modules/ 4.4.0-1017- raspi2/ modules. order: No such file or directory mkinitramfs_ qsoaTD/ lib/modules/ 4.4.0-1017- raspi2/ modules. builtin: No such file or directory post-update. d//flash- kernel exited with return code 1
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
depmod: WARNING: could not open /var/tmp/
depmod: WARNING: could not open /var/tmp/
Unsupported platform.
run-parts: /etc/initramfs/
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1