-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The builder now creates a profile.txt file, which `make config` will read as your default choices. `nano profile.txt` and uncomment and edit what applies to you. Profile: 1.0 Builder: 6.1 Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
- Loading branch information
Patrick Yavitz
committed
Nov 21, 2023
1 parent
0ac66f3
commit 1c3e786
Showing
5 changed files
with
111 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
# customize your image | ||
custom_txt (){ | ||
cat <<EOF > "custom.txt" | ||
# Boot Partition: true false | ||
ENABLE_VFAT="false" | ||
# Root Filesystem Types: ext4 btrfs xfs | ||
FSTYPE="ext4" | ||
# UEFI Options: true false | ||
ENABLE_EFI="false" | ||
# Petitboot (ODROID): true false | ||
ENABLE_PETITBOOT="false" | ||
# Image Size: 3072MB 3584MB 4096MB | ||
IMGSIZE="4096MB" | ||
# Shrink Image (EXT4 Only): true false | ||
ENABLE_SHRINK="true" | ||
# Compression Types: xz zst | ||
IMG_COMPRESSION="xz" | ||
### DO NOT EDIT BELOW THIS LINE | ||
CUSTOM="$BUILDER" | ||
EOF | ||
} | ||
|
||
profile_txt (){ | ||
cat <<EOF > "profile.txt" | ||
# User data defaults | ||
#NAME="$MYNAME" | ||
#USERNAME="$USER" | ||
#PASSWORD="board" | ||
#VERSION="$LTS2" | ||
#CCACHE="$CCACHE" | ||
#NETWORKMANAGER="$NETWORKMANAGER" | ||
#RTW88="$RTW88" | ||
#RTL88XXAU="$RTL88XXAU" | ||
#USERACCT="$USERACCT" | ||
#USER_PKGS="$USER_PKGS" | ||
#LOCALE="$LOCALE" | ||
#LOCALE_LC_ALL="$LOCALE_LC_ALL" | ||
#TIMEZONE="$TIMEZONE" | ||
#NAMESERVER1="$NAMESERVER1" | ||
#NAMESERVER2="$NAMESERVER2" | ||
### DO NOT EDIT BELOW THIS LINE | ||
USER_PROFILE="$PROFILE" | ||
EOF | ||
sed -i "s/^#VERSION=.*/#VERSION="'"$LTS2"'"/" profile.txt | ||
} |
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