2015-08-12

Slitaz -- Loop install / UUID-2


slitaz-rolling-preinit.iso 2015-Aug-09

mount: mounting /dev/b9f5cf75-b3a0-4c86-bd48-3933094a7551 on /mnt failed: No such file or directory

/bin/sh: tazpkg: not found


1.
root@slitaz:~$ cat /proc/cmdline
mount=b9f5cf75-b3a0-4c86-bd48-3933094a7551 loopfs=slitaz.fs


2.
root@slitaz:~$ grep slitaz /var/lib/tazpkg/installed.md5
370f8b89f84bdea6d148dcde164794af slitaz-base-files-282.tazpkg
d217df7d7f46042afd4d54879170c53d slitaz-boot-scripts-408.tazpkg


3.
root@slitaz:~$ head -28 /var/log/boot.log
$root:

Mount b9f5cf75-b3a0-4c86-bd48-3933094a7551...

r=$(blkid|sed):

${r:-$root}: b9f5cf75-b3a0-4c86-bd48-3933094a7551

${r#/dev/}: b9f5cf75-b3a0-4c86-bd48-3933094a7551

{/dev/$(r%%/*)}: /dev/b9f5cf75-b3a0-4c86-bd48-3933094a7551

${root#*$r}: b9f5cf75-b3a0-4c86-bd48-3933094a7551

mount: mounting /dev/b9f5cf75-b3a0-4c86-bd48-3933094a7551 on /mnt failed: No such file or directory
Sleep 2 seconds...

$r : /dev/b9f5cf75-b3a0-4c86-bd48-3933094a7551

mount: mounting /dev/b9f5cf75-b3a0-4c86-bd48-3933094a7551 on /mnt failed: No such file or directory
Into file slitaz.fs...
losetup: /mnt/slitaz.fs: No such file or directory
Switching / to tmpfs...
[ Done ]
Processing: /etc/init.d/rcS...
Mounting proc filesystem on /proc [ Done ]
Mounting devtmpfs filesystem on: /dev [ Done ]
Starting udev daemon...


4.
root@slitaz:~$ diff /init-orig /init
--- /init-orig
+++ /init
@@ -89,18 +89,26 @@
got $1 && msg "$1 $root"
}
+echo -e "\$root: $root\n"
+
mnt()
{
r=$(blkid 2> /dev/null | sed "s|\"||g;/$(echo $root | tr / .)/!d;s|:.*||;q")
+echo -e "\nr=\$(blkid|sed): $r\n"
r=${r:-$root}
+echo -e "\${r:-\$root}: $r\n"
r=${r#/dev/}
+echo -e "\${r#/dev/}: $r\n"
r=/dev/${r%%/*}
+echo -e "{/dev/\$(r%%/*)}: $r\n"
d=${root#*$r}
+echo -e "\${root#*\$r}: $d\n"
busybox mount $r $1 && return
w=$(cat /sys/module/usb_storage/parameters/delay_use)
w=$((1+${w:-2}))
echo -n "Sleep $w seconds..."
sleep $w
+echo -e "\n\$r : $r\n"
busybox mount $r $1
}


5.
root@slitaz:~$ tazpkg
/bin/sh: tazpkg: not found

root@slitaz:~$ ls -l /usr/bin/taz*
ls: /usr/bin/taz*: No such file or directory