From d9233e3096374be846a2cb324b92821828038435 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 13 Jul 2025 14:18:32 +0200 Subject: MAKEDEV: fix creating non-partstore nodes We want to drop the slice part only in the partstore case. (but still want to change the device in case of USB disk) --- sutils/MAKEDEV.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh index e8a9a883..4961f858 100644 --- a/sutils/MAKEDEV.sh +++ b/sutils/MAKEDEV.sh @@ -225,7 +225,7 @@ mkdev() { ;; esac - dev=${I%s[0-9]*} + dev=$I case "$I" in wd*|cd*) @@ -246,7 +246,8 @@ mkdev() { # The device name passed all syntax checks, so finally use it! if [ "$USE_PARTSTORE" ] && [ -z "$rest" ] && [ "$sliceno" ]; then - st $I root 640 b /hurd/storeio -T typed part:$sliceno:device:$MASTER$dev + local drive=${dev%s[0-9]*} + st $I root 640 b /hurd/storeio -T typed part:$sliceno:device:$MASTER$drive else st $I root 640 b /hurd/storeio $MASTER$dev fi -- cgit v1.2.3