Offer to boot newly built ISO
This commit is contained in:
1 parent
02750fd9d9
commit
06ac075d24
1 file changed
+9
-4
@@ -7,8 +7,9 @@ set -e
|
|||||||
git submodule update --init --recursive --jobs=8
|
git submodule update --init --recursive --jobs=8
|
||||||
|
|
||||||
# Prepare build repo
|
# Prepare build repo
|
||||||
BUILD_ROOT="$(realpath "${BASH_SOURCE[0]%/*}/..")"
|
BUILD_ROOT=$(realpath "${BASH_SOURCE[0]%/*}/..")
|
||||||
mkdir -p "$BUILD_ROOT/release"
|
BUILD_RELEASE_PATH="$BUILD_ROOT/release"
|
||||||
|
mkdir -p "$BUILD_RELEASE_PATH"
|
||||||
|
|
||||||
# Determine which build script to use
|
# Determine which build script to use
|
||||||
if [[ $1 == "--offline" ]]; then
|
if [[ $1 == "--offline" ]]; then
|
||||||
@@ -20,11 +21,15 @@ fi
|
|||||||
# Run the builder
|
# Run the builder
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--privileged \
|
--privileged \
|
||||||
-v "$BUILD_ROOT/release/:/out/" \
|
-v "$BUILD_RELEASE_PATH/:/out/" \
|
||||||
-v "$BUILD_ROOT/$BUILD_SCRIPT:/$BUILD_SCRIPT:ro" \
|
-v "$BUILD_ROOT/$BUILD_SCRIPT:/$BUILD_SCRIPT:ro" \
|
||||||
-v "$BUILD_ROOT/archiso:/archiso:ro" \
|
-v "$BUILD_ROOT/archiso:/archiso:ro" \
|
||||||
-v "$BUILD_ROOT/builder:/builder:ro" \
|
-v "$BUILD_ROOT/builder:/builder:ro" \
|
||||||
archlinux/archlinux:latest /$BUILD_SCRIPT
|
archlinux/archlinux:latest /$BUILD_SCRIPT
|
||||||
|
|
||||||
# Make iso accessible to all
|
# Make iso accessible to all
|
||||||
sudo chmod 777 -R "$BUILD_ROOT/release"
|
sudo chmod 777 -R "$BUILD_RELEASE_PATH"
|
||||||
|
|
||||||
|
# Offer to boot the new build
|
||||||
|
latest_iso=$(\ls -t "$BUILD_RELEASE_PATH/*.iso" | head -n1)
|
||||||
|
gum confirm "Boot $latest_iso?" && omarchy-iso-boot "$latest_iso"
|
||||||
Reference in new issue
Block a user