File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -72,3 +72,6 @@ cat >> /etc/sysctl.conf <<EOF
72
72
# This avoids a SPECTRE vuln
73
73
kernel.unprivileged_bpf_disabled=1
74
74
EOF
75
+
76
+ # Build a manifest
77
+ dpkg-query --show > /root/manifest
Original file line number Diff line number Diff line change 85
85
86
86
# -comp zstd but guest kernel does not support
87
87
rootfs_img=" $OUTPUT_DIR /$ROOTFS_NAME .squashfs"
88
+ sudo mv $rootfs /root/manifest $OUTPUT_DIR /$ROOTFS_NAME .manifest
88
89
sudo mksquashfs $rootfs $rootfs_img -all-root -noappend
89
90
rootfs_ext4=$OUTPUT_DIR /$ROOTFS_NAME .ext4
90
91
dir2ext4img $rootfs $rootfs_ext4
@@ -152,7 +153,9 @@ function build_linux {
152
153
make -j $( nproc) $target
153
154
LATEST_VERSION=$( cat include/config/kernel.release)
154
155
flavour=$( basename $KERNEL_CFG .config | grep -Po " \d+\.\d+\K(-.*)" || true)
155
- cp -v $binary_path $OUTPUT_DIR /vmlinux-$LATEST_VERSION$flavour
156
+ OUTPUT_FILE=$OUTPUT_DIR /vmlinux-$LATEST_VERSION$flavour
157
+ cp -v $binary_path $OUTPUT_FILE
158
+ cp -v .config $OUTPUT_FILE .config
156
159
popd & > /dev/null
157
160
}
158
161
You can’t perform that action at this time.
0 commit comments