EOF
cat <<EOF > $config_path/fstab
-+proc $rootfs_path/proc proc nodev,noexec,nosuid 0 0
-+devpts $rootfs_path/dev/pts devpts defaults 0 0
-+sysfs $rootfs_path/sys sysfs defaults 0 0
-
+proc $rootfs_path/proc proc nodev,noexec,nosuid 0 0
+devpts $rootfs_path/dev/pts devpts defaults 0 0
+sysfs $rootfs_path/sys sysfs defaults 0 0
+EOF
if [ $? -ne 0 ]; then
echo "Failed to add configuration"
return 1
Mandatory args:
-n,--name container name, used to as an identifier for that container from now on
Optional args:
- -p,--path path to where the container rootfs will be created, defaults to /var/lib/lxc. The container config will go under /var/lib/lxc in and case
+ -p,--path path to where the container rootfs will be created, defaults to /var/lib/lxc. The container config will go under /var/lib/lxc in that case
-c,--clean clean the cache
-R,--release Fedora release for the new container. if the host is Fedora, then it will defaultto the host's release.
-A,--arch NOT USED YET. Define what arch the container will be [i686,x86_64]