Searched refs:target (Results 1 - 13 of 13) sorted by relevance

/lxc/src/lxc/
H A Dinitutils.c29 static int mount_fs(const char *source, const char *target, const char *type) argument
32 if (umount(target))
33 WARN("failed to unmount %s : %s", target, strerror(errno));
35 if (mount(source, target, type, 0, NULL)) {
36 ERROR("failed to mount %s : %s", target, strerror(errno));
40 DEBUG("'%s' mounted on '%s'", source, target);
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
550 ret = mount_unknown_fs(path, target, options);
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);
722 INFO("Mount source or target for %s on %s doesn't exist. Skipping.", source, destination);
772 static int mount_rootfs(const char *rootfs, const char *target, const char *options) argument
808 return rtfs_type[i].cb(absrootfs, target, option
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
3800 char *target, *opts; local
[all...]
H A Dutils.c1610 * @target: path to be opened
1611 * @prefix_skip: a part of @target in which to ignore symbolic links. This
1616 static int open_without_symlink(const char *target, const char *prefix_skip) argument
1621 fulllen = strlen(target);
1626 if (!is_subdir(target, prefix_skip, curlen)) {
1627 ERROR("WHOA there - target '%s' didn't start with prefix '%s'",
1628 target, prefix_skip);
1643 /* Make a copy of target which we can hack up, and tokenize it */
1644 if ((dup = strdup(target)) == NULL) {
1669 SYSERROR("%s in %s was a symbolic link!", nextpath, target);
[all...]
/lxc/src/lxc/bdev/
H A Dbdev.h139 int mount_unknown_fs(const char *rootfs, const char *target,
H A Dbdev.c247 p += p2 - src; // move target pointer (p)
739 int mount_unknown_fs(const char *rootfs, const char *target, argument
744 const char *target; member in struct:cbarg
748 .target = target,
885 const char *target; member in struct:cbarg
902 cbarg->rootfs, cbarg->target, fstype);
909 if (mount(cbarg->rootfs, cbarg->target, fstype, mntflags, mntdata)) {
918 cbarg->rootfs, cbarg->target, fstype);
H A Dlxcoverlay.c53 static int ovl_remount_on_enodev(const char *lower, const char *target,
664 static int ovl_remount_on_enodev(const char *lower, const char *target, argument
669 ret = mount(lower, target, ovl_name, MS_MGC_VAL | mountflags, options);
671 ret = mount(lower, target,
/lxc/templates/
H A Dlxc-gentoo.in388 target=$(readlink /etc/localtime)
389 if [[ "$target" != "" ]]; then
390 if [ -f "${rootfs}/${target}" ]; then
391 #same target exists in container
392 chroot "${rootfs}" ln -sf "${target}" "/etc/localtime"
393 printf " => host symlink reproducted in container : %s\n" "${target}"
H A Dlxc-archlinux.in103 # set default boot target
104 ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
130 ( cd "${rootfs_path}/etc/systemd/system/getty.target.wants"
314 "${rootfs_path}/etc/systemd/system/multi-user.target.wants/"
H A Dlxc-opensuse.in106 ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@console.service
107 ln -s -f ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty1.service
108 ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty2.service
109 ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty3.service
110 ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty4.service
H A Dlxc-fedora.in316 # Always make sure /etc/resolv.conf is up to date in the target!
318 # Rebuild the rpm database based on the target rpm version...
370 rm -f ${rootfs_path}/etc/systemd/system/default.target
373 chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
375 chroot ${rootfs_path} ln -s /usr/lib/systemd/system/halt.target /etc/systemd/system/sigpwr.target
399 ( cd ${rootfs_path}/etc/systemd/system/getty.target.wants
533 # Always make sure /etc/resolv.conf is up to date in the target!
656 # Always make sure /etc/resolv.conf is up to date in the target!
[all...]
H A Dlxc-openmandriva.in178 unlink ${rootfs_path}/etc/systemd/system/default.target
179 chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
H A Dlxc-oracle.in161 ( cd $container_rootfs/etc/systemd/system/getty.target.wants
165 sed -i '/Before=getty.target/a ConditionVirtualization=lxc' $container_rootfs/usr/lib/systemd/system/console-getty.service
168 # disable some systemd services, set default boot, sigpwr target
169 rm -f $container_rootfs/usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service
170 chroot $container_rootfs systemctl -q disable graphical.target
171 chroot $container_rootfs systemctl -q enable multi-user.target
H A Dlxc-debian.in220 mkdir -p "${rootfs}/etc/systemd/system/getty.target.wants"
232 rm -f "${rootfs}/etc/systemd/system/default.target"
235 chroot "${rootfs}" ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
238 ( cd "${rootfs}/etc/systemd/system/getty.target.wants"
241 # Since we use static-getty.target; we need to mask container-getty@.service generated by
244 ( cd "${rootfs}/etc/systemd/system/getty.target.wants"

Completed in 37 milliseconds