summaryrefslogtreecommitdiffstats
path: root/source/installer/sources
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-01-09 20:10:55 +0000
committer Eric Hameleers <alien@slackware.com>2023-01-09 21:34:48 +0100
commite33171c1dcd46c51e778c9de2cc78586b3a00b9d (patch)
treeb24ba31d7a230fde8abe00facebae118e8ac608d /source/installer/sources
parente0eaf6e451b08cc5af9d17258f2c6157cb424efe (diff)
downloadcurrent-e33171c1dcd46c51e778c9de2cc78586b3a00b9d.tar.gz
current-e33171c1dcd46c51e778c9de2cc78586b3a00b9d.tar.xz
Mon Jan 9 20:10:55 UTC 202320230109201055
a/aaa_libraries-15.1-x86_64-16.txz: Rebuilt. Upgraded: libncurses.so.6.4, libncursesw.so.6.4, libtinfo.so.6.4, libform.so.6.4, libformw.so.6.4, libmenu.so.6.4, libmenuw.so.6.4, libpanel.so.6.4, libglib-2.0.so.0.7400.4, libgmodule-2.0.so.0.7400.4, libgobject-2.0.so.0.7400.4, libgthread-2.0.so.0.7400.4, libmpfr.so.6.2.0. a/aaa_terminfo-6.4-x86_64-1.txz: Upgraded. ap/man-db-2.11.2-x86_64-1.txz: Upgraded. kde/kio-5.101.0-x86_64-2.txz: Rebuilt. [PATCH] Restore old behavior for KFileFilterCombo::setFilter Thanks to marav. kde/okteta-0.26.10-x86_64-1.txz: Upgraded. l/libspectre-0.2.12-x86_64-1.txz: Upgraded. l/mpfr-4.2.0-x86_64-1.txz: Upgraded. l/ncurses-6.4-x86_64-1.txz: Upgraded. x/xterm-378-x86_64-1.txz: Upgraded. xap/libnma-1.10.6-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/installer/sources')
-rwxr-xr-xsource/installer/sources/initrd/sbin/probe45
1 files changed, 34 insertions, 11 deletions
diff --git a/source/installer/sources/initrd/sbin/probe b/source/installer/sources/initrd/sbin/probe
index 2ba2e0f2a..d30920125 100755
--- a/source/installer/sources/initrd/sbin/probe
+++ b/source/installer/sources/initrd/sbin/probe
@@ -140,17 +140,6 @@ list_amiraid() {
fi
}
-#list_mmc() {
-# # find drive
-# DRV=`expr $2 / 8`
-# NUM=`expr $2 % 8`
-# if [ "$NUM" = "0" ]; then
-# fdisk -l /dev/mmcblk$DRV >> $TMP/SeTfdisk
-# #output_gpt_partitions /dev/mmcblk$DRV >> $TMP/SeTfdisk
-# else
-# return
-# fi
-#}
list_mmc() {
local device
# Filter out any partitions on the block device, as we'll use
@@ -445,4 +434,38 @@ sed -i -e "s/Linux filesystem/Linux/g" $TMP/SeTfdisk
sed -i -e "s/EFI System/EFI System Partition/g" $TMP/SeTfdisk
sed -i -e "s,EFI (FAT-12/16/32),EFI System Partition,g" $TMP/SeTfdisk
+# Filter out reserved file system labels for Slackware ARM/AArch64 and the
+# Slackware A-i-O (All in One Offline) Installer file systems.
+# This prevents them from being offered as candidates for formatting/mounting
+# during the installation.
+#
+# Labels:
+# SLKins = Media (usually a USB stick) containing the Slackware install media
+# This FS label isn't required to locate the media, but it's helpful
+# as a way to exclude the media from the list of candidates.
+# This label is included within the Installation Guide for the USB
+# media installation option.
+# SLKins_aio-pkgs =
+# The label of the partition on the All-In-One Installer that contains the
+# Slackware packages.
+# SLKhwm_bw = Hardware Model Bootware - native Bootware for the RPi
+#
+# 'SLKroot' is used to identify the OS root file system on ARM, but we don't
+# filter it out because it's *supposed* to appear as a candidate within the
+# menu. Whilst we don't ship any images that contain a file system with this label,
+# the user might be reinstalling, thus would never be presented with the partition.
+#
+# SLKboot = Slackware OS /boot partition, but is only reserved only on ARM/AArch64:
+[[ "$( uname -m )" =~ a(rm*|arch64) ]] && aexc="boot|"
+
+awk '/^\/dev\// {print $1}' /var/log/setup/tmp/SeTfdisk | while read device; do
+ # The wrapping of e2label is because whilst it handles other file system types,
+ # it includes verbosity about the filesystem type; where as for ext filesystems
+ # it outputs only the label.
+ { ( e2label ${device} 2>/dev/null | tail -n1 | rev \
+ | awk '{print $1}' | rev | tr -d "'" | \
+ grep -Eq "^SLK(${aexc}ins|ins_aio-pkgs|hwm_bw)$" ) && sed -i '\|^'"${device}\s"'|d' $TMP/SeTfdisk ;}
+done
+
+# Dump the discovered storage:
cat $TMP/SeTfdisk