diff options
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 |
commit | e33171c1dcd46c51e778c9de2cc78586b3a00b9d (patch) | |
tree | b24ba31d7a230fde8abe00facebae118e8ac608d /source/installer | |
parent | e0eaf6e451b08cc5af9d17258f2c6157cb424efe (diff) | |
download | current-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')
-rw-r--r-- | source/installer/ChangeLog.txt | 13 | ||||
-rwxr-xr-x | source/installer/sources/initrd/sbin/probe | 45 |
2 files changed, 47 insertions, 11 deletions
diff --git a/source/installer/ChangeLog.txt b/source/installer/ChangeLog.txt index b81fb8d36..d1671e1e4 100644 --- a/source/installer/ChangeLog.txt +++ b/source/installer/ChangeLog.txt @@ -1,3 +1,16 @@ +Mon Jan 9 09:37:40 UTC 2023 + /sbin/probe: Removed old mmc discovery code. + Filter devices that contain reserved file system labels for Slackware + ARM/AArch64 and the A-i-O (All in One Offline) Installer. + This prevents the installation media and Slackware ARM system partitions from + appearing as candidates for formatting/mounting during setup. + Reserved labels: + SLKins = Media (usually a USB stick) containing the Slackware install media. + SLKboot = Slackware OS /boot partition; only reserved only on ARM/AArch64. + SLKhwm_bw = Hardware Model Bootware - native Bootware firmware/assets. + SLKins_aio-pkgs = A-i-O Installer's partition containing Slackware packages. + Thanks to Stuart Winter. ++--------------------------+ Thu Oct 13 12:29:18 UTC 2022 Moved libpcre2 from /usr/lib(64) to /lib(64). Thanks to Stuart Winter. +--------------------------+ 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 |