Lines Matching refs:rootfs
75 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/etc/fstab
163 cat <<- "EOF" | patch $rootfs/etc/inittab
177 echo "$name" > $rootfs/etc/HOSTNAME
179 echo "127.0.0.1 localhost $name" > $rootfs/etc/hosts
181 echo "DHCP" > $rootfs/var/run/inet1-scheme
183 ln -s ../usr/share/zoneinfo/Asia/Tokyo $rootfs/etc/localtime
185 sed -i '/pam_loginuid/s/^/#/' $rootfs/etc/pam.d/login
187 mv $rootfs/etc/ld.so.conf{.new,}
188 chroot $rootfs ldconfig
190 ed - $rootfs/etc/rc.d/rc.S <<- "EOF"
198 ed - $rootfs/etc/rc.d/rc.M <<- "EOF"
205 head -n-93 $rootfs/sbin/netconfig.tradnet > /tmp/netconfig.rconly
208 RC=$rootfs/etc/rc.d/rc.inet1.tradnet
218 rm -f $rootfs/etc/rc.d/rc.inet1.tradnet
221 sed -i '/cmdline/s/if/& false \&\&/' $rootfs/etc/rc.d/rc.inet1.tradnet
223 sed -i '/rpc.mountd/s/^/#/' $rootfs/etc/rc.d/rc.inet2
224 sed -i '/modprobe/s/^/#/' $rootfs/etc/rc.d/rc.inet2
226 chmod 644 $rootfs/etc/rc.d/init.d/saslauthd
227 chmod 644 $rootfs/etc/rc.d/init.d/open-iscsi
228 rm -f $rootfs/etc/rc.d/init.d/postfix
229 rm -f $rootfs/var/log/initpkg/shadow
260 mkdir -p $rootfs/$h
261 echo "lxc.mount.entry = $h $rootfs/$h none bind 0 0" >> $path/config
266 echo $pwd >> $rootfs/etc/passwd
268 echo `getent shadow $bindhome` >> $rootfs/etc/shadow
288 $prog [-h|--help] -p|--path=<path> -n|--name=<name> --rootfs=<rootfs>
298 path="" ; name="" ; rootfs=""
304 lopts=help,path:,name:,rootfs:,clean,release:,arch:,bindhome:
315 --rootfs) rootfs=$2 ; shift 2 ;;
347 rtcache=$cache/rootfs-${prog##*-}-$release-$arch
348 if [ -z "$rootfs" ] ; then
349 if grep -q "^lxc.rootfs" $path/config ; then
350 rootfs=`awk -F= '/^lxc.rootfs =/{ print $2 }' $path/config`
352 rootfs=$path/rootfs