cloud images with open-iscsi do not have iscsi support in initramfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Confirmed
|
Low
|
Unassigned |
Bug Description
The cloud images in xenial have open-iscsi installed.
owever, the initramfs built there do not have open-iscsi support.
The package doesn't enable itself for initramfs-tools by default.
In order to have open-iscsi in the initramfs we need to touch
/etc/iscsi/
process ends.
The net change of doing this is
a.) current and future initramfs will have open-iscsi support
b.) initramfs grows by ~ 120k due to inclusion of (iscsi_ibft.ko and /sbin/iscsistart)
c.) shipped initramfs has support for iscsi boot params ad documented in /usr/share/
A specific example of what affect that has:
$ cat /etc/cloud/
build_name: server
serial: 20151212
$ kver=$(uname -r) ; echo $kver
4.3.0-2-generic
$ initrd=
## build one with
$ rm -f /etc/iscsi/
$ update-initramfs -u -k $kver
$ cp $initrd $initrd.open-iscsi
## build one without
$ rm -f /etc/iscsi/
$ update-initramfs -u -k $kver
update-initramfs: Generating /boot/initrd.
$ cp $initrd $initrd.
$ ls -l $initrd.*open*
-rw-r--r-- 1 root root 10976919 Jan 13 19:27 /boot/initrd.
-rw-r--r-- 1 root root 11098059 Jan 13 19:27 /boot/initrd.
$ lsinitramfs $initrd.
$ lsinitramfs $initrd.open-iscsi | sort > /tmp/open-iscsi
$ diff -u /tmp/no-open-iscsi /tmp/open-iscsi
--- /tmp/no-open-iscsi 2016-01-13 19:29:02.083445519 +0000
+++ /tmp/open-iscsi 2016-01-13 19:29:47.995460389 +0000
@@ -119,7 +119,7 @@
bin/which
bin/yes
bin/zcat
-/boot/
+/boot/
conf
conf/arch.conf
conf/conf.d
@@ -133,6 +133,8 @@
etc/default/
etc/e2fsck.conf
etc/fstab
+etc/initiatorn
+etc/iscsi.
etc/ld.so.cache
etc/ld.so.conf
etc/ld.so.conf.d
@@ -301,6 +303,8 @@
lib/modules/
lib/modules/
lib/modules/
+lib/modules/
+lib/modules/
lib/modules/
lib/modules/
lib/modules/
@@ -543,6 +547,7 @@
sbin/fsck
sbin/fsck.ext4
sbin/hwclock
+sbin/iscsistart
sbin/logsave
sbin/lvm
sbin/mdadm
affects: | ubuntu → cloud-images |
I marked this 'low' as the maas-images project builds initramfs with this change in place, and it doesn't actually have to be present if the root system if the initramfs has it.