4 Commits
4 changed files with 22 additions and 39 deletions
+1
View File
@@ -24,5 +24,6 @@ apt \
gdisk \ gdisk \
linux-headers-$(uname -r) \ linux-headers-$(uname -r) \
systemd-timesyncd \ systemd-timesyncd \
wget \
whois \ whois \
zfsutils-linux zfsutils-linux
+4 -4
View File
@@ -9,7 +9,6 @@ packages=( \
ca-certificates \ ca-certificates \
console-setup \ console-setup \
cryptsetup \ cryptsetup \
curl \
dosfstools \ dosfstools \
dpkg-dev \ dpkg-dev \
efibootmgr \ efibootmgr \
@@ -28,14 +27,15 @@ rsync \
sudo \ sudo \
systemd-timesyncd \ systemd-timesyncd \
tasksel \ tasksel \
wget \
zfs-initramfs \ zfs-initramfs \
zstd \ zstd \
) )
include="--include=${packages[0]}" include="${packages[0]}"
for ((i=1;i<${#packages[@]};i++)); do for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}" include+=",${packages[${i}]}"
done done
mmdebstrap \ mmdebstrap \
@@ -43,6 +43,6 @@ mmdebstrap \
--components=main,non-free-firmware,contrib \ --components=main,non-free-firmware,contrib \
--mode=root \ --mode=root \
--format=directory \ --format=directory \
${include} \ --include="${include}" \
"${VERSION_CODENAME}" \ "${VERSION_CODENAME}" \
/mnt /mnt
+5 -20
View File
@@ -17,34 +17,19 @@ mkdir \
-p \ -p \
/boot/efi/EFI/BOOT /boot/efi/EFI/BOOT
curl \ wget \
--progress-bar \ --output-document \
--show-error \
--output \
/boot/efi/EFI/ZBM/VMLINUZ.EFI \ /boot/efi/EFI/ZBM/VMLINUZ.EFI \
--location \
https://get.zfsbootmenu.org/efi https://get.zfsbootmenu.org/efi
for file in {ZBM/VMLINUZ-BACKUP,BOOT/{BOOTX64,shellx64}}; do
rsync \ rsync \
-pogAXtlHrDx \ -pogAXtlHrDx \
--stats \ --stats \
--info=progress2 \ --info=progress2 \
/boot/efi/EFI/ZBM/VMLINUZ.EFI \ /boot/efi/EFI/ZBM/VMLINUZ.EFI \
/boot/efi/EFI/ZBM/VMLINUZ-BACKUP.EFI /boot/efi/EFI/${file}.EFI
done
rsync \
-pogAXtlHrDx \
--stats \
--info=progress2 \
/boot/efi/EFI/ZBM/VMLINUZ.EFI \
/boot/efi/EFI/BOOT/BOOTX64.EFI
rsync \
-pogAXtlHrDx \
--stats \
--info=progress2 \
/boot/efi/EFI/ZBM/VMLINUZ.EFI \
/boot/efi/EFI/BOOT/shellx64.efi
efibootmgr \ efibootmgr \
-c \ -c \
+7 -10
View File
@@ -13,7 +13,6 @@ if [[ "${1}" == '--mmdebstrap' ]]; then
packages=(\ packages=(\
console-setup \ console-setup \
cryptsetup \ cryptsetup \
curl \
dosfstools \ dosfstools \
dpkg-dev \ dpkg-dev \
efibootmgr \ efibootmgr \
@@ -27,14 +26,15 @@ network-manager \
openssh-{client,server} \ openssh-{client,server} \
popularity-contest \ popularity-contest \
rsync \ rsync \
wget \
zfs-initramfs \ zfs-initramfs \
zstd\ zstd\
) )
include="--include=${packages[0]}" include="${packages[0]}"
for ((i=1;i<${#packages[@]};i++)); do for ((i=1;i<${#packages[@]};i++)); do
include+=" --include=${packages[${i}]}" include+=",${packages[${i}]}"
done done
mmdebstrap \ mmdebstrap \
@@ -42,7 +42,7 @@ zstd\
--components=main,restricted,universe,multiverse \ --components=main,restricted,universe,multiverse \
--mode=root \ --mode=root \
--format=directory \ --format=directory \
${include} \ --include=${include} \
"${UBUNTU_VERSION_CODENAME}" \ "${UBUNTU_VERSION_CODENAME}" \
/mnt /mnt
fi fi
@@ -170,12 +170,9 @@ if [[ "${1}" == '--desktop' ]]; then
fi fi
if [[ "${1}" == '--namarupa' ]]; then if [[ "${1}" == '--namarupa' ]]; then
curl \ wget \
--progress \ --continue \
--location \ --directory-prefix '/tmp' \
--remote-name \
--continue-at - \
--output-dir '/tmp' \
'https://github.com/lenemter/wingpanel-indicator-namarupa/raw/main/com.github.lenemter.wingpanel-indicator-namarupa.deb' 'https://github.com/lenemter/wingpanel-indicator-namarupa/raw/main/com.github.lenemter.wingpanel-indicator-namarupa.deb'
apt \ apt \