From 0c41e39ec0d4049ec272858625c7e6a02b3f9471 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Mon, 26 Mar 2012 22:40:40 +0300 Subject: [PATCH] initial alien image support "Alien" rather means "CentOS-based" than "xenophilic" here; in case you still wonder: http://www.altlinux.org/Hasher/CentOS --- conf.d/alien.mk | 6 ++++++ features.in/build-ve/image-scripts.d/07fstab | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 conf.d/alien.mk create mode 100755 features.in/build-ve/image-scripts.d/07fstab diff --git a/conf.d/alien.mk b/conf.d/alien.mk new file mode 100644 index 00000000..7dc41695 --- /dev/null +++ b/conf.d/alien.mk @@ -0,0 +1,6 @@ +ve/.centos-base: ve/.bare + @$(call set,IMAGE_INIT_LIST,hasher-pkg-init) + +ve/centos: ve/.centos-base + @$(call add,BASE_PACKAGES,openssh-server) + diff --git a/features.in/build-ve/image-scripts.d/07fstab b/features.in/build-ve/image-scripts.d/07fstab new file mode 100755 index 00000000..9853b868 --- /dev/null +++ b/features.in/build-ve/image-scripts.d/07fstab @@ -0,0 +1,6 @@ +#!/bin/sh + +[ -s /etc/fstab ] || cat >> /etc/fstab <<-EOF +proc /proc proc nosuid,noexec,gid=proc 0 0 +devpts /dev/pts devpts gid=5,mode=620 0 0 +EOF