-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d6f560
commit 5fb28a7
Showing
11 changed files
with
138 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#! /bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
source ../__frzr | ||
|
||
check() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#! /bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
# Prepare the image | ||
pacman -Sy --noconfirm | ||
pacman -S --noconfirm archlinux-keyring | ||
pacman-key --init | ||
pacman-key --populate archlinux | ||
pacman -Syu --noconfirm | ||
|
||
pacman -S --noconfirm parted btrfs-progs file libnewt dosfstools jq util-linux zstd xz curl wget arch-install-scripts | ||
|
||
# Create the frzr group | ||
groupadd -g 379 frzr | ||
usermod -a -G frzr $(whoami) | ||
|
||
export FILENAME=image.img | ||
export BUILD_DIR="/workdir/output" | ||
export BUILD_IMG="$BUILD_DIR/$FILENAME" | ||
|
||
mkdir -p "$BUILD_DIR" | ||
dd if=/dev/zero of=$BUILD_IMG bs=1M count=8192 | ||
|
||
# Associate the image file with a loop device | ||
losetup -fP "$BUILD_IMG" | ||
|
||
# Find the loop device associated with the image file | ||
MOUNTED_DEVICE=$(losetup -a | grep "$FILENAME" | cut -d ' ' -f 1 | sed 's/://') | ||
|
||
export DISK="$MOUNTED_DEVICE" | ||
export SWAP_GIB=0 | ||
bash /workdir/frzr bootstrap | ||
|
||
export SKIP_UEFI_CHECK="yes" | ||
export MOUNT_PATH="/tmp/frzr_root" | ||
export EFI_MOUNT_PATH="/tmp/frzr_root/efi" | ||
export FRZR_SKIP_CHECK="yes" | ||
export SYSTEMD_RELAX_ESP_CHECKS=1 | ||
|
||
# deploy chimeraos-45-1_9a95912 | ||
bash /workdir/frzr deploy chimeraos/chimeraos:45_1 | ||
|
||
# old releases used an older frzr | ||
INSTALLED_RELEASE=$(cat "$MOUNT_PATH/deployments/chimeraos-45-1_9a95912/build_info" | head -n 1) | ||
|
||
# Umount the loopback device | ||
losetup -d "$MOUNTED_DEVICE" | ||
|
||
# Remove the file | ||
rm -f $BUILD_IMG | ||
|
||
if ! echo "$INSTALLED_RELEASE" | grep -Fq "chimeraos-45"; then | ||
exit 1 | ||
fi |