diff --git a/board/myna-player-odyssey/scripts/initramfs_postbuild.sh b/board/myna-player-odyssey/scripts/initramfs_postbuild.sh index faf744d..9a87431 100755 --- a/board/myna-player-odyssey/scripts/initramfs_postbuild.sh +++ b/board/myna-player-odyssey/scripts/initramfs_postbuild.sh @@ -10,7 +10,6 @@ dbus-uuidgen > "${BR2_EXTERNAL_MynaPlayer_PATH}"/board/myna-player-odyssey/utilities/machine-id cp "${BR2_EXTERNAL_MynaPlayer_PATH}"/board/myna-player-odyssey/utilities/machine-id \ "${TARGET_DIR}"/etc/machine-id -chmod 444 "${TARGET_DIR}"/etc/machine-id # lets point emergency.target to reboot.target diff --git a/board/myna-player-odyssey/scripts/rootfs_postbuild.sh b/board/myna-player-odyssey/scripts/rootfs_postbuild.sh index 80caff7..dccf42b 100755 --- a/board/myna-player-odyssey/scripts/rootfs_postbuild.sh +++ b/board/myna-player-odyssey/scripts/rootfs_postbuild.sh @@ -4,6 +4,11 @@ . "${BR2_EXTERNAL_MynaPlayer_PATH}"/scripts/certs.sh +# copy machine-id into the target + +cp "${BR2_EXTERNAL_MynaPlayer_PATH}"/board/myna-player-odyssey/utilities/machine-id \ + "${TARGET_DIR}"/etc/machine-id + # Moving kernel modules into place rsync -ar "${BASE_DIR}"/../kmod/modules/* \ diff --git a/board/myna-player-odyssey/utilities/device-table b/board/myna-player-odyssey/utilities/device-table new file mode 100644 index 0000000..7fddade --- /dev/null +++ b/board/myna-player-odyssey/utilities/device-table @@ -0,0 +1 @@ +/etc/machine-id f 444 root root - - - - - diff --git a/configs/myna_player_odyssey_defconfig b/configs/myna_player_odyssey_defconfig index 5c8682d..e547f70 100644 --- a/configs/myna_player_odyssey_defconfig +++ b/configs/myna_player_odyssey_defconfig @@ -16,6 +16,8 @@ BR2_TARGET_GENERIC_HOSTNAME="MynaPlayer" BR2_TARGET_GENERIC_ISSUE="Welcome to MynaPlayer" BR2_INIT_SYSTEMD=y +BR2_ROOTFS_DEVICE_TABLE="$(BR2_EXTERNAL_MynaPlayer_PATH)/board/myna-player-odyssey/utilities/device-table" +BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES=y BR2_SYSTEM_BIN_SH_BASH=y # BR2_TARGET_GENERIC_GETTY is not set # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set diff --git a/configs/myna_player_odyssey_initramfs_defconfig b/configs/myna_player_odyssey_initramfs_defconfig index 8a92cfa..24fdede 100644 --- a/configs/myna_player_odyssey_initramfs_defconfig +++ b/configs/myna_player_odyssey_initramfs_defconfig @@ -14,6 +14,8 @@ BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_INIT_SYSTEMD=y +BR2_ROOTFS_DEVICE_TABLE="$(BR2_EXTERNAL_MynaPlayer_PATH)/board/myna-player-odyssey/utilities/device-table" +BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES=y # BR2_TARGET_ENABLE_ROOT_LOGIN is not set # BR2_TARGET_GENERIC_GETTY is not set # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set