Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imaginator creates a bootstrap image with 700 root directory #445

Open
masiulaniec opened this issue May 21, 2018 · 2 comments
Open

imaginator creates a bootstrap image with 700 root directory #445

masiulaniec opened this issue May 21, 2018 · 2 comments

Comments

@masiulaniec
Copy link
Contributor

# 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"
			]
		}
	}
}
@rgooch
Copy link
Contributor

rgooch commented May 21, 2018

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
Copy link
Contributor

rgooch commented May 23, 2018

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

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

No branches or pull requests

2 participants