Attempt to fix resize

This commit is contained in:
2025-04-25 20:30:21 -07:00
parent 8e2305eb5c
commit f9327e82ae
20 changed files with 23 additions and 17 deletions

View File

@@ -5,11 +5,11 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
IMGID="$(dd if="${IMG_FILE}" skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')"
BOOT_PARTUUID="${IMGID}-01"
ROOT_PARTUUID="${IMGID}-02"
#HOME_PARTUUID="${IMGID}-03"
RECOVERY_PARTUUID="${IMGID}-02"
ROOT_PARTUUID="${IMGID}-03"
sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
#sed -i "s/HOMEDEV/PARTUUID=${HOME_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
#sed -i "s/RECOVERY/PARTUUID=${RECOVERY_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/boot/firmware/cmdline.txt"

View File

@@ -31,8 +31,8 @@ truncate -s "${IMG_SIZE}" "${IMG_FILE}"
parted --script "${IMG_FILE}" mklabel msdos
parted --script "${IMG_FILE}" unit B mkpart primary fat32 "${BOOT_PART_START}" "$((BOOT_PART_START + BOOT_PART_SIZE - 1))"
parted --script "${IMG_FILE}" unit B mkpart primary fat32 "${RECOVERY_PART_START}" "$((RECOVERY_PART_START + RECOVERY_PART_SIZE - 1))"
parted --script "${IMG_FILE}" unit B mkpart primary ext4 "${ROOT_PART_START}" "$((ROOT_PART_START + ROOT_PART_SIZE - 1))"
parted --script "${IMG_FILE}" unit B mkpart primary ext4 "${RECOVERY_PART_START}" "$((RECOVERY_PART_START + RECOVERY_PART_SIZE - 1))"
echo "Creating loop device..."
cnt=0
@@ -49,8 +49,8 @@ done
ensure_loopdev_partitions "$LOOP_DEV"
BOOT_DEV="${LOOP_DEV}p1"
ROOT_DEV="${LOOP_DEV}p2"
RECOVERY_DEV="${LOOP_DEV}p3"
RECOVERY_DEV="${LOOP_DEV}p2"
ROOT_DEV="${LOOP_DEV}p3"
ROOT_FEATURES="^huge_file"
for FEATURE in 64bit; do
@@ -66,8 +66,8 @@ else
fi
mkdosfs -n bootfs -F "$FAT_SIZE" -s 4 -v "$BOOT_DEV" > /dev/null
mkdosfs -n recovery -F "16" -s 4 -v "$RECOVERY_DEV" > /dev/null
mkfs.ext4 -L rootfs -O "$ROOT_FEATURES" "$ROOT_DEV" > /dev/null
mkfs.ext4 -L recovery -O "$ROOT_FEATURES" "$RECOVERY_DEV" > /dev/null
mount -v "$ROOT_DEV" "${ROOTFS_DIR}" -t ext4
mkdir -p "${ROOTFS_DIR}/boot/firmware"

View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
#on_chroot <<- EOF
# sed -i "/^${LOCALE_DEFAULT//./\\.} UTF-8/s/^#//" /etc/locale.gen || echo "${LOCALE_DEFAULT} UTF-8" >> /etc/locale.gen
# locale-gen
# update-locale LANG=${LOCALE_DEFAULT}
# echo "LANG=${LOCALE_DEFAULT}" > /etc/default/locale
#EOF

View File

@@ -1,5 +1,3 @@
proc /proc proc defaults 0 0
BOOTDEV /boot/firmware vfat defaults 0 2
ROOTDEV / ext4 defaults,noatime 0 1
# For /home (always writable):
#LABEL=home /home ext4 defaults 0 2

View File

@@ -4,7 +4,6 @@ desktop-base
git
gvfs
rfkill
firefox-esr
fonts-droid-fallback
fonts-liberation2
obconf

View File

@@ -0,0 +1 @@
firefox-esr

View File

@@ -1 +1 @@
gnome-session gnome-shell libpam-gnome-keyring gnome-control-center gnome-software network-manager-gnome pulseaudio gnome-terminal gnome-initial-setup gnome-tweaks gnome-shell-extension-no-annoyance gnome-shell-extension-manager gnome-shell-extension-gsconnect gnome-shell-extension-dash-to-panel gnome-shell-extension-bluetooth-quick-connect gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons-ng gnome-shell-extensions-extra
gnome-session gnome-shell libpam-gnome-keyring gnome-control-center gnome-software network-manager-gnome pulseaudio gnome-terminal gnome-online-accounts gnome-initial-setup gnome-tweaks gnome-shell-extension-no-annoyance gnome-shell-extension-manager gnome-shell-extension-gsconnect gnome-shell-extension-dash-to-panel gnome-shell-extension-bluetooth-quick-connect gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons-ng gnome-shell-extensions-extra

View File

@@ -16,11 +16,7 @@ EOF
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
on_chroot << EOF
# Create the user profile to link user-db:user and system-db:local
echo "user-db:user" > /etc/dconf/profile/user
echo "system-db:local" >> /etc/dconf/profile/user
EOF
install -m 644 files/dconf-profile "${ROOTFS_DIR}/etc/dconf/profile/user"
# Set default gnome-extensions
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"

View File

@@ -0,0 +1,2 @@
user-db:user
system-db:local

View File

@@ -4,6 +4,7 @@ color-scheme='prefer-dark'
[org/gnome/desktop/background]
picture-uri='file:///usr/local/share/backgrounds/loveimage.png'
picture-uri-dark='file:///usr/local/share/backgrounds/loveimage.png'
picture-options='spanned'
primary-color='000000'
secondary-color='FFFFFF'

View File

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB