Lines Matching refs:rootfs

53     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/etc/sysconfig/boot
101 ln -s /dev/null $rootfs/etc/systemd/system/proc-sys-fs-binfmt_misc.automount
102 ln -s /dev/null $rootfs/etc/systemd/system/console-shell.service
103 ln -s /dev/null $rootfs/etc/systemd/system/systemd-vconsole-setup.service
104 sed -e 's/ConditionPathExists=.*//' $rootfs/usr/lib/systemd/system/getty@.service > $rootfs/etc/systemd/system/getty@.service
105 ln -s getty@.service $rootfs/etc/systemd/system/getty@tty1.service
106 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
112 touch $rootfs/etc/sysconfig/kernel
230 echo "Failed to download the rootfs, aborting."
235 mv "$1/partial-$arch" "$1/rootfs-$arch"
245 rootfs=$3
248 echo "Copying rootfs to $rootfs ..."
249 mkdir -p $rootfs
250 rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1
258 rootfs=$1
267 echo "Checking cache download in $cache/rootfs-$arch ... "
268 if [ ! -e "$cache/rootfs-$arch" ]; then
276 echo "Copy $cache/rootfs-$arch to $rootfs ... "
277 copy_opensuse $cache $arch $rootfs
279 echo "Failed to copy rootfs"
299 rootfs=$2
302 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "
303 lxc.rootfs = $rootfs_path
413 options=$(getopt -o hp:n:r:c -l help,rootfs:,path:,name:,release:,clean -- "$@")
425 --rootfs) rootfs=$2; shift 2;;
496 # detect rootfs
498 if [ -z "$rootfs" ]; then
499 if grep -q '^lxc.rootfs' $config 2>/dev/null ; then
500 rootfs=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $config)
502 rootfs=$path/rootfs
506 install_opensuse $rootfs
512 configure_opensuse $rootfs $name
518 copy_configuration $path $rootfs $name