Attempt to fix resize
This commit is contained in:
@@ -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' ')"
|
IMGID="$(dd if="${IMG_FILE}" skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')"
|
||||||
|
|
||||||
BOOT_PARTUUID="${IMGID}-01"
|
BOOT_PARTUUID="${IMGID}-01"
|
||||||
ROOT_PARTUUID="${IMGID}-02"
|
RECOVERY_PARTUUID="${IMGID}-02"
|
||||||
#HOME_PARTUUID="${IMGID}-03"
|
ROOT_PARTUUID="${IMGID}-03"
|
||||||
|
|
||||||
sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab"
|
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/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"
|
sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/boot/firmware/cmdline.txt"
|
||||||
|
@@ -31,8 +31,8 @@ truncate -s "${IMG_SIZE}" "${IMG_FILE}"
|
|||||||
|
|
||||||
parted --script "${IMG_FILE}" mklabel msdos
|
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 "${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 "${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..."
|
echo "Creating loop device..."
|
||||||
cnt=0
|
cnt=0
|
||||||
@@ -49,8 +49,8 @@ done
|
|||||||
|
|
||||||
ensure_loopdev_partitions "$LOOP_DEV"
|
ensure_loopdev_partitions "$LOOP_DEV"
|
||||||
BOOT_DEV="${LOOP_DEV}p1"
|
BOOT_DEV="${LOOP_DEV}p1"
|
||||||
ROOT_DEV="${LOOP_DEV}p2"
|
RECOVERY_DEV="${LOOP_DEV}p2"
|
||||||
RECOVERY_DEV="${LOOP_DEV}p3"
|
ROOT_DEV="${LOOP_DEV}p3"
|
||||||
|
|
||||||
ROOT_FEATURES="^huge_file"
|
ROOT_FEATURES="^huge_file"
|
||||||
for FEATURE in 64bit; do
|
for FEATURE in 64bit; do
|
||||||
@@ -66,8 +66,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdosfs -n bootfs -F "$FAT_SIZE" -s 4 -v "$BOOT_DEV" > /dev/null
|
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 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
|
mount -v "$ROOT_DEV" "${ROOTFS_DIR}" -t ext4
|
||||||
mkdir -p "${ROOTFS_DIR}/boot/firmware"
|
mkdir -p "${ROOTFS_DIR}/boot/firmware"
|
||||||
|
9
stage0/01-locale/00-run.sh
Normal file
9
stage0/01-locale/00-run.sh
Normal 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
|
@@ -1,5 +1,3 @@
|
|||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
BOOTDEV /boot/firmware vfat defaults 0 2
|
BOOTDEV /boot/firmware vfat defaults 0 2
|
||||||
ROOTDEV / ext4 defaults,noatime 0 1
|
ROOTDEV / ext4 defaults,noatime 0 1
|
||||||
# For /home (always writable):
|
|
||||||
#LABEL=home /home ext4 defaults 0 2
|
|
@@ -4,7 +4,6 @@ desktop-base
|
|||||||
git
|
git
|
||||||
gvfs
|
gvfs
|
||||||
rfkill
|
rfkill
|
||||||
firefox-esr
|
|
||||||
fonts-droid-fallback
|
fonts-droid-fallback
|
||||||
fonts-liberation2
|
fonts-liberation2
|
||||||
obconf
|
obconf
|
||||||
|
1
stage3/00-install-packages/01-packages-amd64
Normal file
1
stage3/00-install-packages/01-packages-amd64
Normal file
@@ -0,0 +1 @@
|
|||||||
|
firefox-esr
|
@@ -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
|
||||||
|
@@ -16,11 +16,7 @@ EOF
|
|||||||
|
|
||||||
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
|
||||||
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
|
||||||
on_chroot << EOF
|
install -m 644 files/dconf-profile "${ROOTFS_DIR}/etc/dconf/profile/user"
|
||||||
# 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
|
|
||||||
|
|
||||||
# Set default gnome-extensions
|
# Set default gnome-extensions
|
||||||
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
|
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
|
2
stage3/02-setup-system/files/dconf-profile
Normal file
2
stage3/02-setup-system/files/dconf-profile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
user-db:user
|
||||||
|
system-db:local
|
@@ -4,6 +4,7 @@ color-scheme='prefer-dark'
|
|||||||
|
|
||||||
[org/gnome/desktop/background]
|
[org/gnome/desktop/background]
|
||||||
picture-uri='file:///usr/local/share/backgrounds/loveimage.png'
|
picture-uri='file:///usr/local/share/backgrounds/loveimage.png'
|
||||||
|
picture-uri-dark='file:///usr/local/share/backgrounds/loveimage.png'
|
||||||
picture-options='spanned'
|
picture-options='spanned'
|
||||||
primary-color='000000'
|
primary-color='000000'
|
||||||
secondary-color='FFFFFF'
|
secondary-color='FFFFFF'
|
Before Width: | Height: | Size: 3.8 MiB After Width: | Height: | Size: 3.8 MiB |
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
Reference in New Issue
Block a user