[Eisfair] ls -l /dev/disk/by-uuid (Problem)
Thomas Bork
tom at eisfair.org
Di Mär 12 00:01:56 CET 2019
Am 11.03.2019 um 21:13 schrieb ich:
> Kleine Fingerübung für Dich:
> Erweitere das Skript so, dass auch UUID-Einträge korrekt ausgewertet
> werden.
> Wahrscheinlich musst Du blkid mitsamt seiner Abhängigkeiten in die inird
> verfrachten und damit das Device ermitteln.
Sollte einfacher mit findfs als mit blkid gehen, a la
if $($GREP -q '^UUID' /rootdev)
then
# UUID=2381eff1-9677-4a04-9faa-323247ec2f83
string="$(cat /rootdev)"
echo "rootdev is a UUID: $string, converting it to device ..."
UUIDDEV="$(findfs "$string")"
echo "UUIDDEV=$UUIDDEV"
$RDEV "$UUIDDEV"
fi
# Check if ROOTDEV is a number (major and minor).
if ! $($GREP -q '^/dev/.*' /rootdev)
then
string="$(cat /rootdev)"
echo "rootdev is a number: $string"
stringlength="$(echo ${#string})"
# hdd3 is 1643 (0x1643)
[...]
Wenn das nicht geht, zeig mal
dmesg | 'Kernel command line'
und die Ausgaben der initramfs.
--
der tom
[eisfair-team]
Mehr Informationen über die Mailingliste Eisfair