Merge lp://staging/~smoser/maas-images/trunk.add-zfs into lp://staging/maas-images
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | 386 |
Proposed branch: | lp://staging/~smoser/maas-images/trunk.add-zfs |
Merge into: | lp://staging/maas-images |
Diff against target: |
43 lines (+27/-0) 1 file modified
bin/kpack-from-image (+27/-0) |
To merge this branch: | bzr merge lp://staging/~smoser/maas-images/trunk.add-zfs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lee Trager (community) | Approve | ||
Review via email:
|
Commit message
Add zfs module and dependencies to generated initramfs.
In order for curtin to use zfs, it has to have access to the modules.
Add 'zfs' and its dependencies to the initramfs.
Note that the user-space tools (zfsutils-linux) are not currently
a dependency of ubuntu-server and are thus not in the squashfs images.
That means that for curtin to use zfs it has to install the package.
To post a comment you must log in.
Tested functional for what I'm after, adding zfs to the boot-initrd.
$ bzr init-repo maas-images
$ cd maas-images
$ bzr branch lp:maas-images trunk
$ bzr branch lp:~smoser/maas-images/trunk.add-zfs add-zfs
$ rel=xenial ; arch=amd64 cloud-images. ubuntu. com/ $rel-server- cloudimg- amd64.squashfs rel/current/ $rel-server- cloudimg- amd64.squashfs -O "$file"
$ burl=http://
$ file=$PWD/
$ wget $burl/$
$ for d in add-zfs trunk; do $PWD/bin: $PATH ./bin/meph2-build --config= conf/meph- v3.yaml \
( cd $d &&
PATH=
$arch $rel $(date +"%Y%m%d") $file $rel-output.d/ 2>&1 ) |
tee $d-out.log
done
$ for initrd in $(cd trunk && find $rel-output.d -name boot-initrd ); do $initrd. list
for br in add-zfs trunk; do
[ -f "$br/$initrd.list" ] && continue
lsinitramfs $br/$initrd | grep -v "boot-initrd" | sort > $br/$initrd.list
done
echo ==== $initrd ====
diff -u trunk/$initrd.list add-zfs/
done
==== xenial- output. d/xenial/ amd64/20171213/ hwe-16. 04/lowlatency/ boot-initrd ==== output. d/xenial/ amd64/20171213/ hwe-16. 04/lowlatency/ boot-initrd. list 2017-12-13 19:52:30.218963551 +0000 xenial- output. d/xenial/ amd64/20171213/ hwe-16. 04/lowlatency/ boot-initrd. list 2017-12-13 19:52:24.419032666 +0000 4.10.0- 42-lowlatency/ kernel/ virt 4.10.0- 42-lowlatency/ kernel/ virt/lib 4.10.0- 42-lowlatency/ kernel/ virt/lib/ irqbypass. ko 4.10.0- 42-lowlatency/ kernel/ zfs 4.10.0- 42-lowlatency/ kernel/ zfs/avl 4.10.0- 42-lowlatency/ kernel/ zfs/avl/ zavl.ko 4.10.0- 42-lowlatency/ kernel/ zfs/nvpair 4.10.0- 42-lowlatency/ kernel/ zfs/nvpair/ znvpair. ko 4.10.0- 42-lowlatency/ kernel/ zfs/spl 4.10.0- 42-lowlatency/ kernel/ zfs/spl/ spl.ko 4.10.0- 42-lowlatency/ kernel/ zfs/unicode 4.10.0- 42-lowlatency/ kernel/ zfs/unicode/ zunicode. ko 4.10.0- 42-lowlatency/ kernel/ zfs/zcommon 4.10.0- 42-lowlatency/ kernel/ zfs/zcommon/ zcommon. ko 4.10.0- 42-lowlatency/ kernel/ zfs/zfs 4.10.0- 42-lowlatency/ kernel/ zfs/zfs/ zfs.ko 4.10.0- 42-lowlatency/ modules. alias 4.10.0- 42-lowlatency/ modules. alias.bin 4.10.0- 42-lowlatency/ modules. builtin output. d/xenial/ amd64/20171213/ hwe-16. 04/generic/ boot-initrd ==== output. d/xenial/ amd64/20171213/ hwe-16. 04/generic/ boot-initrd. list 2017-12-13 19:52:41.686828209 +0000 xenial- output. d/xenial/ amd64/20171213/ hwe-16. 04/generic/ boot-initrd. list 2017-12-13 19:52:36.094894204 +0000 4.10.0- 42-generic/ kernel/ virt 4.10.0- 42-generic/ kernel/ virt/lib 4.10.0- 42-generic/ kernel/ virt/lib/ irqbypass. ko 4.10.0- 42-generic/ kernel/ zfs 4.10.0- 42-generic/ kernel/ zfs/avl 4.10.0- 42-generic/ kernel/ zfs/avl/ zavl.ko 4.10.0- 42-generic/ kernel/ zfs/nvpair 4.10.0- 42-generic/ kernel/ zfs/nvpair/ znvpair. ko 4.10.0- 42-generic/ kernel/ zfs/spl 4.10.0- 42-generic/ kernel/ zfs/spl/ spl.ko 4.10.0- 42-generic/ kernel/ zfs/unicode
--- trunk/xenial-
+++ add-zfs/
@@ -2006,6 +2006,19 @@
lib/modules/
lib/modules/
lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
lib/modules/
lib/modules/
lib/modules/
==== xenial-
--- trunk/xenial-
+++ add-zfs/
@@ -2006,6 +2006,19 @@
lib/modules/
lib/modules/
lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modules/
+lib/modu...