You are not logged in.
Hi. I'm customizing Arch installer. At some point I need to know the boot device to mount another partition on it. For that I execute:
a=`readlink /dev/archiso`
Visually it's sdb1, but in the end of readlink output there're 4 extra characters:
0x73 's'
0x64 'd'
0x62 'b'
0x31 '1'
0x10 '.'
0x20 ' '
0x01 '.'
0x06 '.'
So the only workaround I've found is:
a=`printf %.4s "\`readlink /dev/archiso\`"`
Last edited by leniviy (2009-10-05 12:57:58)
Arch 64, xfce4
Offline