mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Update install.sh
This commit is contained in:
parent
42539989cb
commit
09144a9d3e
1 changed files with 8 additions and 11 deletions
|
|
@ -70,10 +70,13 @@ fi
|
||||||
[[ "${BASE,,}" == "custom."* ]] && BASE="target.iso"
|
[[ "${BASE,,}" == "custom."* ]] && BASE="target.iso"
|
||||||
|
|
||||||
html "$MSG"
|
html "$MSG"
|
||||||
|
|
||||||
[ -f "$STORAGE/$BASE" ] && return 0
|
|
||||||
|
|
||||||
TMP="$STORAGE/tmp"
|
TMP="$STORAGE/tmp"
|
||||||
|
|
||||||
|
if [ -f "$STORAGE/$BASE" ]; then
|
||||||
|
rm -rf "$TMP"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$TMP"
|
mkdir -p "$TMP"
|
||||||
|
|
||||||
ISO="$TMP/$BASE"
|
ISO="$TMP/$BASE"
|
||||||
|
|
@ -98,14 +101,8 @@ fi
|
||||||
if [ ! -f "$ISO" ]; then
|
if [ ! -f "$ISO" ]; then
|
||||||
if [[ "$EXTERNAL" != [Yy1]* ]]; then
|
if [[ "$EXTERNAL" != [Yy1]* ]]; then
|
||||||
|
|
||||||
SCRIPT="$TMP/mido.sh"
|
|
||||||
|
|
||||||
rm -f "$SCRIPT"
|
|
||||||
cp /run/mido.sh "$SCRIPT"
|
|
||||||
chmod +x "$SCRIPT"
|
|
||||||
cd "$TMP"
|
cd "$TMP"
|
||||||
bash "$SCRIPT" "$VERSION"
|
/run/mido.sh "$VERSION"
|
||||||
rm -f "$SCRIPT"
|
|
||||||
cd /run
|
cd /run
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
@ -311,8 +308,8 @@ genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-
|
||||||
-boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR"
|
-boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR"
|
||||||
|
|
||||||
[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM"
|
[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM"
|
||||||
mv "$OUT" "$STORAGE/$BASE"
|
|
||||||
|
|
||||||
|
mv "$OUT" "$STORAGE/$BASE"
|
||||||
rm -rf "$TMP"
|
rm -rf "$TMP"
|
||||||
|
|
||||||
html "Successfully prepared image for installation..."
|
html "Successfully prepared image for installation..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue