Skip to content

Conversation

@ajdlinux
Copy link
Contributor

Add an option, -o/--output, to specify the name of the output directory/images/SSH keys generated by create-image.sh.

While we're there, improve the help message to make it more useful and fix some typos, and fix up some code formatting in the options parser.

Improve the help message:
- sort options alphabetically
- print default values
- print first line to stdout like the rest of the message
- fix typos, improve style

Also sort the options parsing to be alphabetical (except --help), and use
spaces consistently for indentation in this section.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Add an option, -o / --output, to specify a prefix used for the name of the
directory where debootstrap generates the system, and the final disk image
and SSH key filenames.

The default remains using the distro release codename.

For now, ban the use of slashes, spaces, . and .. as output names.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Copy link
Collaborator

@a-nogikh a-nogikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
FWIW we now mostly use Buildroot images on syzbot that are created via https://github.com/google/syzkaller/blob/master/tools/create-buildroot-image.sh. If that also works for your use cases, it might be more straightforward to deal with.

@ajdlinux
Copy link
Contributor Author

Buildroot would be ideal for my use cases, but I have enough other problems to fix right now that switching to buildroot is a fair way down the list :)

@a-nogikh a-nogikh added this pull request to the merge queue Dec 18, 2025
Merged via the queue into google:master with commit e14dbeb Dec 18, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants