Re: atari sysinst.fs overflow again
[email protected] (Christos Zoulas) Sat, 25 Nov 2017 09:28:35 -0500
| Newsgroups | gmane.os.netbsd.ports.atari |
|---|---|
| Organization | Astron Software |
| Message-ID | <[email protected]> |
On Nov 25, 1:25pm, [email protected] (Izumi Tsutsui) wrote: -- Subject: Re: atari sysinst.fs overflow again | I wrote: | | > > You need sort -u for that and although uniq in sed is 'N;/^\(.*\)\n\1$/!P;D', | > > it would not work, but this does: | > [..] | > | > Thanks. | > | > Anyway it looks distrib/atari/floppies/prepare has not been tested | > for many years (prepare/list doesn't include sysctl) so I'll test | > and commit the "prepare" part separately. | | I have not tested floppies/prepare yet, but I didn't notice | prepare/list already has /usr/bin/sort and it uses sort -n. | | On the other hand, I also notice distrib/sun3/miniroot/install.md | has the following md_get_diskdevs(): | | --- | | md_get_diskdevs() { | # return available disk devices | __mount_kernfs | sed -n -e '/^sd[0-9] /s/ .*//p' \ | -e '/^xd[0-9] /s/ .*//p' \ | -e '/^xy[0-9] /s/ .*//p' \ | < /kern/msgbuf | sort -u | } | Cool we have sort! christos