go-debos / debos

Debian OS builder
Apache License 2.0
533 stars 136 forks source link

debos: Warn if parsed memory/scratchsize may be too small #510

Open obbardc opened 2 months ago

obbardc commented 2 months ago

Since the --memory and --scratchsize arguments are parsed with human-readable suffixes into bytes (e.g 2048MB or 2GB), if a user does not put a suffix the arguments are parsed as bytes which can cause issues later when a user sets the memory to be 2048 assuming it will be parsed as MB.

Change the documentation to match reality and also add a warning if the user has set either parameter less than the recommended default.

Closes: #509