Hi,

on 3.4R, when booting, a

        df /

would return the name of the boot device, something like

        fd0a    ....
        wd0a    ...

and the like. On a recent -current snap, this returns

        ufs:fd0a        ....

I used the previous behaviour in picobsd's rc to mount
the file system from the boot device,

        set `df /` ; dev="/dev/$8"
        echo "Reading /etc from ${dev}..."
        mount -o rdonly ${dev} /mnt

unfortunately the "ufs:" prefix breaks the above code.
Any suggestion on how to proceed ? I could of course put some extra
entries on fstab so that i can write

        set `df /` ; filesystem="/$8"
        mount -o rdonly ${filesystem}

but this requires having entries on the filesystem etc. etc.
Any simple shell trick to parse/remove the ufs: prefix ?
Note, i cannot use tr, basename or other progs, they are just not there!

        cheers
        luigi
-----------------------------------+-------------------------------------
  Luigi RIZZO, [EMAIL PROTECTED]  . Dip. di Ing. dell'Informazione
  http://www.iet.unipi.it/~luigi/  . Universita` di Pisa
  TEL/FAX: +39-050-568.533/522     . via Diotisalvi 2, 56126 PISA (Italy)
  Mobile   +39-347-0373137
-----------------------------------+-------------------------------------


        


        


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to