-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
This issue relates to improvements for create-rootfs, suggested during the transition from mmdebstrap to mkosi.
For context, see the discussion in #19.
Below is a compiled version of the points made in that discussion.
Please also mention:
- Anything that might have been missed.
- Any misinterpretation of a previous suggestion.
- Any unnecessary items in the list below.
Improvement Checklist
- Replace manual hostname setup with the
--hostnameoption. - Inject files using
--extra-treeor--postinst-script.- Use
--extra-treefor static files likehostname,resolv.conf,fstab, etc. - Use
--postinst-scriptfor setup steps like tweaking services. - This could remove the need for mount/bind steps and root privileges.
- Also might avoid the current bug where shell variable references (e.g.
$HOME,$PS1) get expanded to host values during image creation
- Use
- Automate SSH setup — check whether
--ssh=truecan replace the manual key copy. - Would be nice to allow users to customize the
mkosiinvocation with extra or overridden options. - Maybe consider using mkosi configuration files instead of long inline arguments for better versatility and readability.
Regards,
Ali
Metadata
Metadata
Assignees
Labels
No labels