#!/bin/bash

#mkdir /mnt/gentoo/stage3
#cd /mnt/gentoo/stage3
#cd /mnt/gentoo/stage3;
#sha512sum -c stage3-amd64-[0-9]*.tar.bz2.DIGESTS

cd /mnt/gentoo
wget "${STAGELINK}"
stagefile=${STAGELINK/*stage3/stage3}
#time tar xjpf ${stagefile}
time tar xJpf "${stagefile}"

# extended attributes + non Gentoo live env
#tar xpvf "${stagefile}" --xattrs-include='*.*' --numeric-owner

#rm -f ${stagefile}
