--- toast-linux	2004/04/22 19:47:00	1.43
+++ toast-linux	2004/04/22 21:10:23	1.44
@@ -778,6 +778,7 @@
 /dev/toast/root /mnt/root       ext2    rw,noauto                       0 0
 /dev/toast/boot /mnt/root/boot  ext2    rw,noauto                       0 0
 proc            /mnt/root/proc  proc    rw,noauto                       0 0
+sys             /mnt/root/sys   sysfs   rw,noauto                       0 0
 
 --- FILE root/etc/fstab.hd ---
 /dev/toast/root /               ext3    rw                              0 0
@@ -847,6 +848,7 @@
 #!/bin/sh
 swapoff -a
 [ -d /mnt/root/proc/1 ] && umount /mnt/root/proc
+[ -d /mnt/root/sys/class ] && umount /mnt/root/sys
 umount -a -r
 
 --- FILE root/etc/init.d/rc.main ---
@@ -1099,8 +1101,7 @@
 done
 chmod 1777 "$target/tmp"
 
-mount "$target/boot"
-mount "$target/proc"
+for i in boot proc sys; do mount "$target/$i"; done
 
 ln -s "../usr/share/zoneinfo/`cat /etc/TZ`" "$target/etc/localtime"
 for i in inittab rc devfsd.conf protocols services rpc fdprm; do
@@ -1458,7 +1459,8 @@
 
 --- FILE root/sbin/finish ---
 #!/bin/sh -e
-[ -d /mnt/root/proc/1 ] || !echo "/mnt/root/proc not mounted?"
+[ -d /mnt/root/proc/1 ] || ! echo "/mnt/root/proc not mounted?"
+[ -d /mnt/root/sys/class ] || ! echo "/mnt/root/sys not mounted?"
 rm -f /mnt/root/dev/dm-[0-9]*
 chroot /mnt/root vgscan
 chroot /mnt/root sh -c 'cp /usr/boot/* /boot/'
@@ -1820,7 +1822,8 @@
 task 1 readline toast arm http://ftp.gnu.org/gnu/readline/readline-4.3.tar.gz
 task 1 parted toast arm http://ftp.gnu.org/gnu/parted/parted-1.6.6.tar.gz
 task 1 cpio toast arm http://ftp.gnu.org/gnu/cpio/cpio-2.5.tar.gz
-task 1 openssh toast arm ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-3.8p1.tar.gz
+# task 1 openssl toast arm http://www.openssl.org/source/openssl-0.9.7d.tar.gz
+# task 1 openssh toast arm ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-3.8p1.tar.gz
 task 1 finish finish
 
 # TODO: reorder/rebuild pkgs to take full advantage of optional libraries etc.