aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-08 10:19:09 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-08 10:19:09 +0100
commitc0e5b8c81f054a301aeaaa16bf9c6220ba73d833 (patch)
treea2db4111358dd891ad3ce7845a4e9e70506b1225 /tools
parentfadd10ac0525a437fc32e412327bdf11587f4946 (diff)
tools: include selinux packages when building images
These packages are required to actually activate selinux during boot.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/create-gce-image.sh2
-rwxr-xr-xtools/create-image.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh
index cc24a245d..798213fda 100755
--- a/tools/create-gce-image.sh
+++ b/tools/create-gce-image.sh
@@ -7,7 +7,7 @@
#
# Prerequisites:
# - you need a user-space system, a basic Debian system can be created with:
-# sudo debootstrap --include=openssh-server,curl,tar,time,strace stable debian
+# sudo debootstrap --include=openssh-server,curl,tar,gcc,libc6-dev,time,strace,sudo,less,psmisc,selinux-utils,policycoreutils,checkpolicy,selinux-policy-default stable debian
# - you need qemu-nbd, grub and maybe something else:
# sudo apt-get install qemu-utils grub-efi
# - you need nbd support in kernel
diff --git a/tools/create-image.sh b/tools/create-image.sh
index 67f3c2726..292a1e48a 100755
--- a/tools/create-image.sh
+++ b/tools/create-image.sh
@@ -7,9 +7,9 @@
set -eux
# Create a minimal Debian-wheezy distributive as a directory.
-sudo rm -rf wheezy
-mkdir -p wheezy
-sudo debootstrap --include=openssh-server,curl,tar,gcc,libc6-dev,time,strace,sudo,less,psmisc wheezy wheezy
+#sudo rm -rf wheezy
+#mkdir -p wheezy
+#sudo debootstrap --include=openssh-server,curl,tar,gcc,libc6-dev,time,strace,sudo,less,psmisc,selinux-utils,policycoreutils,checkpolicy,selinux-policy-default wheezy wheezy
# Set some defaults and enable promtless ssh to the machine for root.
sudo sed -i '/^root/ { s/:x:/::/ }' wheezy/etc/passwd