fixup: set machine type earlier for 'flash-kernel'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I930cdb77ccf65596b23e2d29542d3e9e05882b3f
This commit is contained in:
Dongjin Kim
2020-03-25 19:51:39 +09:00
parent f7ca90d7f5
commit b69dfcb678
3 changed files with 11 additions and 5 deletions

View File

@@ -1,2 +1,11 @@
#!/bin/sh
cat>/etc/default/flash-kernel<<__EOF
LINUX_KERNEL_CMDLINE="@@LINUX_KERNEL_CMDLINE@@"
LINUX_KERNEL_CMDLINE_DEFAULTS="@@LINUX_KERNEL_CMDLINE_DEFAULTS@@"
__EOF
mkdir -p /etc/flash-kernel
cat>/etc/flash-kernel/machine<<__EOF
@@DEFAULT_MACHINE_NAME@@
__EOF

View File

@@ -3,8 +3,4 @@
echo flash-kernel flash-kernel/linux_cmdline string @@LINUX_KERNEL_CMDLINE@@ | \
debconf-set-selections
cat>/etc/default/flash-kernel<<__EOF
LINUX_KERNEL_CMDLINE="@@LINUX_KERNEL_CMDLINE@@"
LINUX_KERNEL_CMDLINE_DEFAULTS="@@LINUX_KERNEL_CMDLINE_DEFAULTS@@"
__EOF
/usr/sbin/flash-kernel --machine "@@DEFAULT_MACHINE_NAME@@"
/usr/sbin/flash-kernel

View File

@@ -214,6 +214,7 @@ do_postinstall() {
rm -f ${rootfs_mnt}/${QEMU_BINARY}
fi
rm -rf ${rootfs_mnt}${fixups_dir}
rm -f /etc/flash-kernel/machine
}
do_cleanup() {