Lines Matching refs:INSTALL_ROOT
408 INSTALL_ROOT=$cache/partial
409 mkdir -p $INSTALL_ROOT
411 echo "Failed to create '$INSTALL_ROOT' directory"
417 YUM0="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
427 REPO_FILE=$INSTALL_ROOT/etc/yum.repos.d/lxc-centos-temp.repo
448 mkdir -p $INSTALL_ROOT/dev
449 force_mknod 666 $INSTALL_ROOT/dev/null c 1 3
450 force_mknod 666 $INSTALL_ROOT/dev/urandom c 1 9
456 mv $INSTALL_ROOT/var/run/* $INSTALL_ROOT/run/
457 rmdir $INSTALL_ROOT/var/run
458 ln -sf ../run $INSTALL_ROOT/var/run
467 cp /etc/resolv.conf $INSTALL_ROOT/etc/
470 if [ ! -e $INSTALL_ROOT/var/lib/rpm/Packages -a -e $INSTALL_ROOT/$HOME/.rpmdb/Packages ]; then
472 mv $INSTALL_ROOT/$HOME/.rpmdb/[A-Z]* $INSTALL_ROOT/var/lib/rpm/
473 rm -rf $INSTALL_ROOT/$HOME/.rpmdb
474 chroot $INSTALL_ROOT rpm --rebuilddb 2>/dev/null
478 chroot $INSTALL_ROOT rpm --quiet -q yum 2>/dev/null
486 mkdir $INSTALL_ROOT/etc/yum.repos.disabled
487 mv $INSTALL_ROOT/etc/yum.repos.d/*.repo $INSTALL_ROOT/etc/yum.repos.disabled/
489 mkdir -p $INSTALL_ROOT/$INSTALL_ROOT/etc
490 cp /etc/resolv.conf $INSTALL_ROOT/$INSTALL_ROOT/etc/
491 mkdir -p $INSTALL_ROOT/$INSTALL_ROOT/dev
492 mknod -m 666 $INSTALL_ROOT/$INSTALL_ROOT/dev/null c 1 3
493 mknod -m 666 $INSTALL_ROOT/$INSTALL_ROOT/dev/urandom c 1 9
494 mkdir -p $INSTALL_ROOT/$INSTALL_ROOT/var/cache/yum
495 cp -al $INSTALL_ROOT/var/cache/yum/* $INSTALL_ROOT/$INSTALL_ROOT/var/cache/yum/
496 chroot $INSTALL_ROOT $YUM0 install $PKG_LIST
501 mv $INSTALL_ROOT/$INSTALL_ROOT $INSTALL_ROOT.tmp
502 rm -rf $INSTALL_ROOT
503 mv $INSTALL_ROOT.tmp $INSTALL_ROOT
507 rm -rf $INSTALL_ROOT/var/cache/yum/*
509 mv "$INSTALL_ROOT" "$cache/rootfs"