Dominator icon indicating copy to clipboard operation
Dominator copied to clipboard

imaginator creates a bootstrap image with 700 root directory

Open masiulaniec opened this issue 6 years ago • 2 comments

# 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"
			]
		}
	}
}

masiulaniec avatar May 21 '18 01:05 masiulaniec

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.

rgooch avatar May 21 '18 06:05 rgooch

Please merge from upstream, so that you get PR #449 and try again.

rgooch avatar May 23 '18 14:05 rgooch