1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#fastboot ext4sparse image default configuration
variables:
img_output: test.img
root_password: root
locale: en_US.UTF-8
timezone: UTC
img_size: 55G
img_label: rootfs
config:
create_dev_proc_shadow:
- |
mkdir -p %{build-root}/dev
mkdir -p %{build-root}/proc
systemd-firstboot --root %{build-root} --root-password %{root_password} --locale %{locale} --timezone %{timezone}
chmod 400 %{build-root}/etc/shadow
create_img:
- |
make_ext4fs -L %{img_label} -l %{img_size} -s /buildstream/%{img_output} %{build-root}
install_img:
- |
mv /buildstream/%{img_output} %{install-root}
chmod 0644 %{install-root}/%{img_output}
|