Searched refs:rootfs_path (Results 1 - 11 of 11) sorted by relevance

/lxc/templates/
H A Dlxc-centos.in165 mkdir -p $rootfs_path/selinux
166 echo 0 > $rootfs_path/selinux/enforce
169 if [ -f $rootfs_path/etc/selinux/config ]
171 sed -i '/^SELINUX=/s/.*/SELINUX=disabled/' $rootfs_path/etc/selinux/config
176 if [ -f $rootfs_path/usr/sbin/selinuxenabled ]; then
177 mv $rootfs_path/usr/sbin/selinuxenabled $rootfs_path/usr/sbin/selinuxenabled.lxcorig
178 ln -s /bin/false $rootfs_path/usr/sbin/selinuxenabled
184 sed -i '/^session.*pam_loginuid.so/s/^session/# session/' ${rootfs_path}/etc/pam.d/login
185 sed -i '/^session.*pam_loginuid.so/s/^session/# session/' ${rootfs_path}/et
[all...]
H A Dlxc-fedora.in137 mkdir -p $rootfs_path/selinux
138 echo 0 > $rootfs_path/selinux/enforce
141 if [[ -f $rootfs_path/etc/selinux/config ]]
143 sed -i '/^SELINUX=/s/.*/SELINUX=disabled/' $rootfs_path/etc/selinux/config
148 if [ -f $rootfs_path/usr/sbin/selinuxenabled ]; then
149 mv $rootfs_path/usr/sbin/selinuxenabled $rootfs_path/usr/sbin/selinuxenabled.lxcorig
150 ln -s /bin/false $rootfs_path/usr/sbin/selinuxenabled
156 sed -i '/^session.*pam_loginuid.so/s/^session/# session/' ${rootfs_path}/etc/pam.d/login
157 sed -i '/^session.*pam_loginuid.so/s/^session/# session/' ${rootfs_path}/et
[all...]
H A Dlxc-archlinux.in75 cp -p /etc/locale.conf /etc/locale.gen "${rootfs_path}/etc/"
77 echo "LANG=${default_locale}" > "${rootfs_path}/etc/locale.conf"
78 if [ -e "${rootfs_path}/etc/locale.gen" ]; then
79 sed -i 's@^#\(en_US\.UTF-8\)@\1@' "${rootfs_path}/etc/locale.gen"
82 "${rootfs_path}/etc/locale.gen"
88 echo "${name}" > "${rootfs_path}/etc/hostname"
91 cat > "${rootfs_path}/etc/systemd/network/eth0.network" << EOF
100 arch-chroot "${rootfs_path}" /bin/bash -s << EOF
130 ( cd "${rootfs_path}/etc/systemd/system/getty.target.wants"
136 echo "${devttydir}/tty${i}" >> "${rootfs_path}/et
[all...]
H A Dlxc-altlinux.in56 mkdir -p $rootfs_path/selinux
57 echo 0 > $rootfs_path/selinux/enforce
59 mkdir -p ${rootfs_path}/etc/net/ifaces/eth0
60 cat <<EOF > ${rootfs_path}/etc/net/ifaces/eth0/options
69 cat <<EOF > ${rootfs_path}/etc/net/ifaces/eth0/ipv4address
73 cat <<EOF > ${rootfs_path}/etc/net/ifaces/eth0/ipv4route
77 cat <<EOF > ${rootfs_path}/etc/net/ifaces/eth0/resolv.conf
81 cat <<EOF > ${rootfs_path}/etc/net/ifaces/eth0/ipv6address
85 cat <<EOF > ${rootfs_path}/etc/net/ifaces/eth0/ipv6route
92 cat <<EOF > ${rootfs_path}/et
[all...]
H A Dlxc-openmandriva.in57 mkdir -p ${rootfs_path}/etc/sysconfig/network-scripts/
60 cat <<EOF > ${rootfs_path}/etc/sysconfig/network-scripts/ifcfg-eth0
69 cat <<EOF > ${rootfs_path}/etc/sysconfig/network
74 echo "${utsname}" > ${rootfs_path}/etc/hostname
77 cat <<EOF > $rootfs_path/etc/hosts
86 dev_path="${rootfs_path}/dev"
116 echo "root:$root_password" | chroot "$rootfs_path" chpasswd
156 echo -n "Copying rootfs to $rootfs_path ..."
157 mkdir -p $rootfs_path
158 rsync -Ha $cache/rootfs/ $rootfs_path/
[all...]
H A Dlxc-opensuse.in303 lxc.rootfs = $rootfs_path
/lxc/src/lxc/bdev/
H A Dlxcaufs.h65 char *aufs_get_rootfs(const char *rootfs_path, size_t *rootfslen);
H A Dlxcoverlay.h85 char *ovl_get_rootfs(const char *rootfs_path, size_t *rootfslen);
H A Dlxcaufs.c317 char *aufs_get_rootfs(const char *rootfs_path, size_t *rootfslen) argument
324 if (!rootfs_path || !rootfslen)
327 s1 = strdup(rootfs_path);
356 char *rootfs_path = NULL; local
371 rootfs_path = rootfs->path;
390 if (rootfs_path) {
406 if (!rootfs_path)
H A Dlxcoverlay.c450 char *ovl_get_rootfs(const char *rootfs_path, size_t *rootfslen) argument
457 if (!rootfs_path || !rootfslen)
460 s1 = strdup(rootfs_path);
489 char *rootfs_path = NULL; local
504 rootfs_path = rootfs->path;
519 if (rootfs_path) {
524 rootfsdir = ovl_get_rootfs(rootfs_path, &rootfslen);
538 if (!rootfs_path)
548 if (!rootfs_path)
/lxc/src/lxc/
H A Dconf.c1907 char *rootfs_path = NULL; local
1909 rootfs_path = rootfs->mount;
1924 mntdata, optional, dev, rootfs_path);

Completed in 48 milliseconds