Files
odroid-stamper/fixups/S00-startup
Dongjin Kim 578d77eb91 fixups: use 'systemd-machine-id-setup' instead of 'uuid-gen'
In chroot, there would be no 'uuid-gen' so failed.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iffd7aac6103c516769030ea3ce288522e2b73df1
2022-04-08 00:08:26 +09:00

25 lines
529 B
Bash
Executable File

#!/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
cat>/etc/apt/apt.conf.d/99debconf<<__EOF
Dpkg::Options {
"--force-confnew";
};
__EOF
systemd-machine-id-setup
mkdir -p /var/lib/dbus
ln -fs /etc/machine-id /var/lib/dbus/machine-id
dpkg-divert --local --rename --add /sbin/initctl
ln -s /bin/true /sbin/initctl