txz: error: hostname: could not create /etc: No such file or directory
In a fresh Adélie environment:
adelie ~ # hscript-image -t txz -o rootfs-ppc.txz ./image/configs/arch/ppc.installfile
HorizonScript Image Creation Utility version 0.9.7
Copyright (c) 2020 Adélie Linux and contributors.
This software is licensed to you under the terms of the
AGPL 3.0 license, unless otherwise noted.
2023-08-28T13:41:26.006 log /root/image/configs/arch/../base/base.installfile: parser: 0 error(s), 0 warning(s).
2023-08-28T13:41:26.023 step-start validate
2023-08-28T13:41:26.029 log /root/image/configs/arch/../base/base.installfile:39: warning: username: live has no set passphrase: This account will not be able to log in.
2023-08-28T13:41:26.034 log installfile: validator: 0 failure(s).
2023-08-28T13:41:26.037 step-end validate
2023-08-28T13:41:26.037 step-start disk
2023-08-28T13:41:26.038 log internal: warning: could not bind-mount /dev; bootloader configuration may fail
2023-08-28T13:41:26.039 log internal: warning: target procfs could not be mounted
2023-08-28T13:41:26.039 log internal: warning: target sysfs could not be mounted
2023-08-28T13:41:26.040 step-end disk
2023-08-28T13:41:26.040 step-start pre-metadata
2023-08-28T13:41:26.040 log /root/image/configs/arch/../base/base.installfile:13: info: hostname: set hostname to 'adelie-live'
2023-08-28T13:41:26.041 log /root/image/configs/arch/../base/base.installfile:13: info: hostname: write 'adelie-live' to /etc/hostname
2023-08-28T13:41:26.042 log /root/image/configs/arch/../base/base.installfile:13: error: hostname: could not create /etc: No such file or directory
2023-08-28T13:41:26.043 log hostname: error: The HorizonScript failed to execute: Check the log file for more details.
umount: /tmp/horizon-image/target/sys: not found
2023-08-28T13:41:26.088 log umount: error: exited abnormally with status 1
umount: /tmp/horizon-image/target/dev: not found
2023-08-28T13:41:26.130 log umount: error: exited abnormally with status 1
A temporary workaround is to do:
mkdir -p /tmp/horizon-image/target