Dominator
Dominator copied to clipboard
imaginator creates a bootstrap image with 700 root directory
# imagetool show bootstrap/Debian-9/2018-05-21:00:31:19 | head -1
drwx------ 1 0 0 /
#
The /etc/imaginator/conf.json
used:
{
"BootstrapStreams": {
"bootstrap/Debian-9": {
"BootstrapCommand": [
"debootstrap",
"--arch=amd64",
"stretch",
"$dir",
"http://deb.debian.org/debian/"
],
"FilterLines": [
"/etc/hostname",
"/etc/machine-id",
"/var/log/.*"
],
"PackagerType": "deb"
}
},
"ImageStreamsUrl": "file:///etc/imaginator/image-streams.json",
"ImageStreamsToAutoRebuild": [],
"PackagerTypes": {
"deb": {
"CleanCommand": [
"apt-get",
"clean"
],
"InstallCommand": [
"apt-get",
"-q",
"-y",
"--no-install-recommends",
"install"
],
"ListCommand": {
"ArgList": [
"dpkg-query",
"-f",
"${binary:Package} ${Version} ${Installed-Size}\n",
"--show"
],
"SizeMultiplier": 1024
},
"RemoveCommand": [
"apt-get",
"-q",
"--purge",
"-y",
"--allow-remove-essential",
"remove"
],
"UpdateCommand": [
"apt-get",
"-q",
"-y",
"update"
],
"UpgradeCommand": [
"apt-get",
"-q",
"-y",
"-o",
"Dpkg::Options::=--force-confold",
"dist-upgrade"
],
"Verbatim": [
"export DEBIAN_FRONTEND=noninteractive"
]
}
}
}
That's surprising. We're using a configuration file that is identical to the sample one, except for the location of the repositories, and the root directory is mode 755. How are you starting the Imaginator? It should be umask=022 (which is the only sane umask anyone should have:-). The Debian-based init script forces a 022 umask.
Please merge from upstream, so that you get PR #449 and try again.