Added stage4 extraction
This commit is contained in:
parent
9a1ea05dcb
commit
d5bcff89bf
1 changed files with 16 additions and 6 deletions
|
@ -207,8 +207,8 @@ function prepare_target() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stage_step() {
|
function stage_step() {
|
||||||
local UUID PART_ENTRY_UUID
|
local s4file SwapUUID SwapOffset
|
||||||
local SwapUUID SwapOffset
|
local cmd
|
||||||
|
|
||||||
show_options
|
show_options
|
||||||
|
|
||||||
|
@ -219,14 +219,24 @@ function stage_step() {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$DEBUG" ]]; then
|
if "$DEBUG"; then
|
||||||
local cmd="echo"
|
cmd="echo"
|
||||||
else
|
else
|
||||||
local cmd=""
|
cmd=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#FIXME check $INSTALL_STAGE for http or local file
|
#FIXME check $INSTALL_STAGE for http or local file
|
||||||
#
|
if [[ "$INSTALL_STAGE" == http* ]]; then
|
||||||
|
s4file="${INSTALL_STAGE##*/}"
|
||||||
|
${cmd} curl -O "/mnt/gentoo/${s4file}" "$INSTALL_STAGE"
|
||||||
|
s4file="/mnt/gentoo/${INSTALL_STAGE##*/}"
|
||||||
|
else
|
||||||
|
s4file="${INSTALL_STAGE}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
${cmd} git clone "https://github.com/erenfro/gen2stage4" "$HOME/gen2stage4"
|
||||||
|
${cmd} "$HOME/gen2stage4/gen2stage4" -q -t /mnt/gentoo "$s4file"
|
||||||
|
${cmd} rm -rf "$HOME/gen2stage4"
|
||||||
|
|
||||||
#FIXME post stage extraction:
|
#FIXME post stage extraction:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue