Searched refs:rootfs (Results 1 - 25 of 38) sorted by relevance

12

/lxc/templates/
H A Dlxc-busybox.in57 cp $binary_path $rootfs/$binary_path
59 echo "Failed to copy $binary_path to rootfs"
68 rootfs=$1
72 $rootfs/selinux \
73 $rootfs/dev \
74 $rootfs/home \
75 $rootfs/root \
76 $rootfs/etc \
77 $rootfs/etc/init.d \
78 $rootfs/bi
[all...]
H A Dlxc-ubuntu.in88 rootfs=$1
95 cat <<EOF > $rootfs/etc/network/interfaces
108 cat <<EOF > $rootfs/etc/hostname
112 cat <<EOF > $rootfs/etc/hosts
124 if [ ! -f $rootfs/etc/init/container-detect.conf ]; then
126 sed -i "s/=\"err\"/=0/" $rootfs/etc/udev/udev.conf
130 rm -f $rootfs/etc/init/tty{5,6}.conf
134 chroot $rootfs useradd --create-home -s /bin/bash $user
135 echo "$user:$password" | chroot $rootfs chpasswd
140 chroot $rootfs local
[all...]
H A Dlxc-sshd.in38 rootfs=$1
41 $rootfs/var/empty/sshd \
42 $rootfs/var/lib/empty/sshd \
43 $rootfs/etc/init.d \
44 $rootfs/etc/rc.d \
45 $rootfs/etc/ssh \
46 $rootfs/etc/sysconfig/network-scripts \
47 $rootfs/dev/shm \
48 $rootfs/run/sshd \
49 $rootfs/pro
[all...]
H A Dlxc-debian.in46 rootfs=$1
53 if [ ! -e "$rootfs/dev/tty$tty" ]; then
54 mknod "$rootfs/dev/tty$tty" c 4 "$tty"
59 cat <<EOF > $rootfs/etc/inittab
78 [ -e "$rootfs/etc/mtab" ] && rm "$rootfs/etc/mtab"
79 ln -s /proc/self/mounts "$rootfs/etc/mtab"
82 mkdir -p "$rootfs/selinux"
83 echo 0 > "$rootfs/selinux/enforce"
86 cat <<EOF > $rootfs/et
[all...]
H A Dlxc-gentoo.in109 # at the end, it will be $cacheroot/rootfs-$arch-$variant
284 #Determine rootfs
285 #If backingstore was specified, lxc.rootfs should be present or --rootfs did the rootfs var creation
286 if [ -z "${rootfs}" ]; then
287 rootfs=`awk -F= '$1 ~ /^lxc.rootfs/ { print $2 }' "$path/config" 2>/dev/null`
288 if [ -z "${rootfs}" ]; then
290 rootfs
[all...]
H A Dlxc-plamo.in75 echo "Failed to download the rootfs, aborting."
85 echo "Failed to download the rootfs, aborting."
95 echo "Failed to download the rootfs, aborting."
106 echo "Copying $rtcache to $rootfs..."
107 mkdir -p $rootfs
108 find $rtcache -mindepth 1 -maxdepth 1 -exec cp -a {} $rootfs \; || return 1
140 echo "Copy $rtcache to $rootfs..."
142 echo "Failed to copy rootfs."
151 sed -i 's/="err"/=0/' $rootfs/etc/udev/udev.conf
153 cat <<- "EOF" > $rootfs/et
[all...]
H A Dlxc-opensuse.in53 rootfs=$1
57 cat <<EOF > $rootfs/etc/sysconfig/network/ifcfg-eth0
63 touch $rootfs/etc/fstab
66 cat <<EOF > $rootfs/etc/HOSTNAME
70 ln -s -f HOSTNAME $rootfs/etc/hostname
73 cat <<EOF >> $rootfs/etc/sysconfig/cron
78 cat <<EOF > $rootfs/etc/hosts
83 cat <<EOF > $rootfs/etc/sysconfig/bootloader
89 cat << EOF >> $rootfs/etc/securetty
93 cat <<EOF >> $rootfs/et
[all...]
H A Dlxc-slackware.in57 rootfs=$1
65 T_PX=$rootfs
99 cat <<EOF > $rootfs/etc/HOSTNAME
102 cp $rootfs/etc/HOSTNAME $rootfs/etc/hostname
106 DEV=$rootfs/dev
130 cat >$rootfs/etc/fstab <<EOF
136 cat >$rootfs/tmp/rcs.patch <<'EOF'
460 ( cd $rootfs ; patch -p1 < tmp/rcs.patch ; rm tmp/rcs.patch )
463 echo "/etc/rc.d/rc.inet1 restart" >> $rootfs/et
[all...]
H A Dlxc-ubuntu-cloud.in52 rootfs=$2
92 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
106 cat /etc/timezone > $rootfs/etc/timezone
107 chroot $rootfs dpkg-reconfigure -f noninteractive tzdata
110 echo $ZONE > $rootfs/etc/timezone
111 chroot $rootfs dpkg-reconfigure -f noninteractive tzdata
117 # I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did
121 if [ ! -L $rootfs/de
[all...]
H A Dlxc-download.in215 [ --rootfs <rootfs> ]: The path to the container's rootfs
229 rootfs:,mapped-uid:,mapped-gid: -- "$@")
253 --rootfs) LXC_ROOTFS=$2; shift 2;;
466 echo "Downloading the rootfs"
467 download_file $DOWNLOAD_URL/rootfs.tar.xz \
468 ${DOWNLOAD_TEMP}/rootfs.tar.xz normal
469 download_sig $DOWNLOAD_URL/rootfs.tar.xz.asc \
470 ${DOWNLOAD_TEMP}/rootfs
[all...]
H A Dlxc-alpine.in84 APK The apk-tools binary to use when building rootfs. If not set
257 || die 3 'Failed to execute /bin/true in chroot, the builded rootfs is broken!'
409 path:,release:,rootfs:,help,mapped-uid:,mapped-gid: -- "$@")
420 rootfs=
446 --rootfs)
447 rootfs=$2; shift 2
479 if [ -z "$rootfs" ] && [ -f "$path/config" ]; then
480 rootfs="$(sed -nE 's/^lxc.rootfs\s*=\s*(.*)$/\1/p' "$path/config")"
482 if [ -z "$rootfs" ]; the
[all...]
H A Dlxc-archlinux.in154 grep -q "^lxc.rootfs" "${config}" 2>/dev/null \
155 || echo "lxc.rootfs = ${rootfs_path}" >> "${config}"
209 -p,--path path to where the container rootfs will be created (${default_path})
210 --rootfs path for actual container rootfs, (${default_path}/rootfs)
222 options=$(getopt -o hp:P:e:d:n:c:a:r: -l help,rootfs:,path:,packages:,enable_units:,disable_units:,name:,config:,arch:,root_password: -- "${@}")
235 --rootfs) rootfs_path=${2}; shift 2;;
268 rootfs_path="${path}/rootfs"
H A Dlxc-altlinux.in197 echo "Failed to download the rootfs, aborting."
201 mv "$INSTALL_ROOT" "$cache/rootfs"
211 echo -n "Copying rootfs to $rootfs_path ..."
212 #cp -a $cache/rootfs-$arch $rootfs_path || return 1
215 rsync -Ha $cache/rootfs/ $rootfs_path/
221 chroot $cache/rootfs apt-get update
222 chroot $cache/rootfs apt-get -y dist-upgrade
235 echo "Checking cache download in $cache/rootfs ... "
236 if [ ! -e "$cache/rootfs" ]; then
252 echo "Copy $cache/rootfs t
[all...]
H A Dlxc-openmandriva.in142 echo "Failed to download the rootfs, aborting."
146 mv "$INSTALL_ROOT" "$cache/rootfs"
156 echo -n "Copying rootfs to $rootfs_path ..."
158 rsync -Ha $cache/rootfs/ $rootfs_path/
165 urpmi --root $cache/rootfs --urpmi-root $cache/rootfs --auto --auto-update --ignorearch
195 echo "Checking cache download in $cache/rootfs ... "
196 if [ ! -e "$cache/rootfs" ]; then
197 echo $cache/rootfs
213 echo "Copy $cache/rootfs t
[all...]
H A Dlxc-cirros.in117 local path=$1 rootfs=$2 name=$3 arch=$4 release=$5
121 lxc.rootfs = $rootfs
202 { error "failed to make rootfs dir ${rootfs_d}"; return 1; }
240 local long_opts="arch:,auth-key:,name:,path:,tarball:,userdata:,verbose,version:,rootfs:,mapped-uid:,mapped-gid:"
265 --rootfs) rootfs_d="$next"; shift;;
273 [ -n "$rootfs_d" ] || rootfs_d="$path/rootfs"
332 insert_ds "$dsource" "$path/rootfs" "$authkeys" "$userdata_f" || {
333 error "failed to insert userdata to $path/rootfs"
338 copy_configuration "$path" "$path/rootfs" "
[all...]
H A Dlxc-fedora.in430 # Stage 2 - Use Stage 1 to build a rootfs with python, rpm, and yum.
519 BOOTSTRAP_LIST="$(( $release + 1 ))/rootfs $(( $release - 1 ))/rootfs \
520 $(( $release + 2 ))/rootfs $(( $release - 2 ))/rootfs \
521 $(( $release + 3 ))/rootfs $(( $release - 3 ))/rootfs \
620 mount -o loop squashfs/LiveOS/rootfs.img stage0
625 Mount of LiveOS stage0 rootfs image failed! LiveOS download may be corrupt.
745 # We know have a working run time environment in rootfs
[all...]
/lxc/src/tests/
H A Dlxc-test-symlink53 lxc.mount.entry = $dirname /var/lib/lxc/symtest1/rootfs/opt/xxx/dir2 none bind,create=dir
57 mkdir -p /var/lib/lxc/symtest1/rootfs/opt/xxx
58 touch /var/lib/lxc/symtest1/rootfs/opt/xxx/file2
62 rm -rf /var/lib/lxc/symtest1/rootfs/opt/xxx
63 mkdir -p /var/lib/lxc/symtest1/rootfs/opt/xxx2
64 ln -s /var/lib/lxc/symtest1/rootfs/opt/xxx2 /var/lib/lxc/symtest1/rootfs/opt/xxx
65 touch /var/lib/lxc/symtest1/rootfs/opt/xxx/file2
69 rm -rf $lxcpath/symtest1/rootfs/opt/xxx
70 mkdir -p $lxcpath/symtest1/rootfs/op
[all...]
/lxc/src/lxc/
H A Dconf.c521 static int mount_rootfs_dir(const char *rootfs, const char *target, argument
533 ret = mount(rootfs, target, "none", MS_BIND | MS_REC | mntflags, mntdata);
539 static int lxc_mount_rootfs_file(const char *rootfs, const char *target, argument
545 loopfd = lxc_prepare_loop_dev(rootfs, path, LO_FLAGS_AUTOCLEAR);
553 DEBUG("mounted rootfs \"%s\" on loop device \"%s\" via loop device \"%s\"", rootfs, target, path);
558 static int mount_rootfs_block(const char *rootfs, const char *target, argument
561 return mount_unknown_fs(rootfs, target, options);
566 * if rootfs is a directory, then open ${rootfs}/lx
574 pin_rootfs(const char *rootfs) argument
772 mount_rootfs(const char *rootfs, const char *target, const char *options) argument
842 setup_dev_symlinks(const struct lxc_rootfs *rootfs) argument
983 setup_rootfs_pivot_root(const char *rootfs) argument
1048 mount_autodev(const char *name, const struct lxc_rootfs *rootfs, const char *lxcpath) argument
1115 lxc_fill_autodev(const struct lxc_rootfs *rootfs) argument
1181 const struct lxc_rootfs *rootfs; local
1311 setup_pivot_root(const struct lxc_rootfs *rootfs) argument
1439 lxc_setup_dev_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console) argument
1497 lxc_setup_ttydir_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console, char *ttydir) argument
1624 lxc_setup_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console, char *ttydir) argument
1639 setup_kmsg(const struct lxc_rootfs *rootfs, const struct lxc_console *console) argument
1752 mount_entry(const char *fsname, const char *target, const char *fstype, unsigned long mountflags, const char *data, int optional, int dev, const char *rootfs) argument
1854 mount_entry_create_dir_file(const struct mntent *mntent, const char* path, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
1897 mount_entry_on_generic(struct mntent *mntent, const char* path, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
1950 mount_entry_on_absolute_rootfs(struct mntent *mntent, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
1998 mount_entry_on_relative_rootfs(struct mntent *mntent, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
2016 mount_file_entries(const struct lxc_rootfs *rootfs, FILE *file, const char *lxc_name, const char *lxc_path) argument
2049 setup_mount(const struct lxc_rootfs *rootfs, const char *fstab, const char *lxc_name, const char *lxc_path) argument
2110 setup_mount_entries(const struct lxc_rootfs *rootfs, struct lxc_list *mount, const char *lxc_name, const char *lxc_path) argument
[all...]
H A Dexecute.c55 if (!handler->conf->rootfs.path) {
73 if (!handler->conf->rootfs.path) {
H A Dutils.h318 char *on_path(const char *cmd, const char *rootfs);
321 char *choose_init(const char *rootfs);
328 unsigned long flags, const void *data, const char *rootfs);
329 int lxc_mount_proc_if_needed(const char *rootfs);
/lxc/src/lxc/bdev/
H A Dlxcaufs.h62 * Get rootfs path for aufs backed containers. Allocated memory must be freed
70 int aufs_mkdir(const struct mntent *mntent, const struct lxc_rootfs *rootfs,
H A Dlxcoverlay.h77 * overlay rootfs.
82 * Get rootfs path for overlay backed containers. Allocated memory must be freed
90 int ovl_mkdir(const struct mntent *mntent, const struct lxc_rootfs *rootfs,
H A Dbdev.c265 if (!conf->rootfs.path)
267 path = conf->rootfs.path;
305 const char *src = c0->lxc_conf->rootfs.path;
310 /* if the container name doesn't show up in the rootfs path, then
314 ERROR("original rootfs path %s doesn't include container name %s",
330 len = strlen(oldpath) + strlen(oldname) + strlen("/rootfs") + 2;
337 ret = snprintf(orig->dest, len, "%s/%s/rootfs", oldpath, oldname);
339 ERROR("rootfs path too long");
458 * @dest: the mountpoint (i.e. /var/lib/lxc/$name/rootfs)
502 r = bdev_init(conf, conf->rootfs
739 mount_unknown_fs(const char *rootfs, const char *target, const char *options) argument
743 const char *rootfs; member in struct:cbarg
884 const char *rootfs; member in struct:cbarg
[all...]
H A Dlxcaufs.c68 // if we have /var/lib/lxc/c2/rootfs, then delta will be
170 * $lxcpath/$lxcname/rootfs to have the created container, while all
180 if (len < 8 || strcmp(dest+len-7, "/rootfs") != 0)
352 int aufs_mkdir(const struct mntent *mntent, const struct lxc_rootfs *rootfs, argument
369 /* When rootfs == NULL we have a container without a rootfs. */
370 if (rootfs && rootfs->path)
371 rootfs_path = rootfs->path;
395 rootfsdir = aufs_get_rootfs(rootfs
[all...]
H A Dbdev.h84 * When lxc-start (conf.c) is mounting a rootfs, then src will be the
85 * 'lxc.rootfs' value, dest will be mount dir (i.e. $libdir/lxc) When clone
86 * or create is doing so, then dest will be $lxcpath/$lxcname/rootfs, since
113 * "overlayfs:/var/lib/lxc/canonical/rootfs:/var/lib/lxc/c1/delta" will mean
114 * use /var/lib/lxc/canonical/rootfs as lower dir, and /var/lib/lxc/c1/delta
139 int mount_unknown_fs(const char *rootfs, const char *target,

Completed in 63 milliseconds

12