Changeset 736 in MondoRescue
- Timestamp:
- Aug 3, 2006, 7:48:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/sbin/init
r623 r736 1 1 #!/bin/sh 2 2 # 3 # 04/20/2005 4 # - fix for 'skip the tape datadisks' bug (Joseph Smith) 3 # $Id$ 5 4 # 6 # 10/13/2004 7 # - echo 0 > /proc/sys/kernel/exec-shield to disable exec-shield 8 # 9 # 07/25 10 # - removed sbminst 11 # 12 # 06/25 13 # - klogd -c 2 (was -c 5) 14 # 15 # 06/21 16 # - experimented w/ calling ctrlaltdel to setup soft reset 17 # - don't softlink /var/log 18 # 19 # 06/16 20 # - insmod dm_mod as well as dm-mod 21 # 22 # 05/24 23 # - added Andree's vc.tgz 24 # 25 # 05/14 26 # - open => openvt (part of busybox) 27 # - nash removed. dm.tgz added 28 # 29 # 04/21 30 # - compare original lsmod output w/ new lsmod output 31 # 32 # 04/13 33 # - mount /sys if appropriate 34 # 35 # 04/03 36 # - use 'dd if=$tapedev bs=32k count=1024' instead of 'tar -zxf $tapedev' 37 # to extract aux datadisk files from tape 38 # 39 # 25/03 40 # - wait 7s, not 2s, while installing modules 41 # 42 # 18/01/2004 43 # - logging mondo-restore.cfg, not mondo-restore.log --- FIXED 44 # 45 # 11/23/2003 46 # - if find-and-mount-cdrom fails once, try again 47 # - open scrolling log of /tmp/mondo-restore.log later than previously 48 # 49 # 11/18 50 # - disabled clear()'s 51 # - reboot at end 52 # 53 # 11/15 54 # - softlink /var/log to /tmp/tmpfs/var/log 55 # - klogd -c 5 now (was -c 1) 56 # 57 # 11/10 58 # - don't call mondorestore if backup-media-type is not specified in 59 # config file /tmp/mondo-restore.cfg 60 # 61 # 10/21 62 # - softlink nano to pico if nano found 63 # 64 # 10/16 65 # - create /dev/md/* softlinks if necessary 66 # 67 # 10/12 68 # - start devfs if /tmp/USE-DEVFS found 69 # - create simple /etc/devfsd.conf file 70 # 71 # 10/09 72 # - try various mount commands to get tmpfs online (use initiative) 73 # 74 # 09/24 75 # - also try /dev/st0, /dev/osst0, /dev/ht0 if [tapedev] fails 76 # - modify media-dev in mondo-restore.cfg if we succeed :) 77 # 78 # 09/15 79 # - create /tmp/null and /tmp/stdout and /tmp/stderr 80 # as copies of the real thing, just in case partimagehack 81 # still uses them 82 # 83 # 08/01 84 # - tmpfs ramdisk is now 48m 85 # 86 # 07/14 87 # - added mkdirs at start 88 # 89 # 06/04 90 # - remount root as rw just in case 91 # 92 # 05/04 93 # - replaced /mnt/groovy-stuff with $GROOVY 94 # 95 # 04/30 96 # - if your CD was created by Mondoarchive when it backed up 97 # to ISO(s) then re-jig tmp/mondo-restore.cfg accordingly; 98 # this is nec. if you backup to a hard disk directory but 99 # then burn the ISOs to physical CDs 100 # 101 # 04/26 102 # - offer user the chance to specify another tape device, if 103 # the one they specified at backup-time refuses to act as 104 # aux data disk at boot-time 105 # 106 # 04/21 107 # - start scsi if cciss 108 # - use ataraid.tgz too 109 # 110 # 05/03 111 # - mount / -o rw,remount at end, just in case 112 # RH9 futzes with the mountpoint 113 # 114 # 04/04 115 # - increased tmpfs ramdisk size from 34m to 38m 116 # 117 # 01/01 - 01/31/2003 118 # - fixed issue with LVM and SW Raid devices (Brian Borgeson) 119 # - friendlier 'upgrade your ram' msg 120 # - better fallback msg 121 # - if /tmp/2880.siz exists then assume boot CD 122 # 123 # 11/01 - 12/31/2002 124 # - updated intro msg 125 # - if /dev/boot_device and /BOOTLOADER.DEVICE exist then 126 # copy device /dev/boot_device to pathname contained 127 # in /BOOTLOADER.DEVICE text file 128 # 129 # 04/01 - 08/31/2002 130 # - handle new 'backup_media_type' entry in mondo-restore.cfg 131 # - added 'sleep 2' at start of WelcomeMessage 132 # - disabled a silly 'abort' line at end 133 # - better handling of devfs (DuckX) --- new RunDevfsd() 134 # - assume start-nfs is in /sbin 135 # - extract rd.tgz, raw.tgz, ida.tgz, cciss.tgz to /; they include 136 # /dev entries which would otherwise fill up the ramdisk at bkp-time 137 # 138 # 01/01 - 03/31/2002 139 # - Carl Wilhelm Soderstrom disabled exec sh; replaced with exit 1 140 # - if you are an idiot & your computer has very little RAM, 141 # this script will no longer abort; it will merely warn you 142 # - run chmod 755 `which start-nfs` before running start-nfs 143 # - use a ramdisk for /tmp (after copying old /tmp stuff into it) 144 # - fixed segfaults ('open') by replacing 'sh' call with '/bin/sh' call 145 # - changed LaunchTerminals() to try to work with newly-compiled 'open' 146 # - don't write 'start-nfs error' if start-nfs doesn't exist; just go on 147 # - added tmpfs and some space-checking 148 # - cleaned up script 149 # - added stuff to start NFS services if necessary 150 # - reordered some of the main() stuff, for elegance's sake 151 # - added Petris and 'tail -f /tmp/mondo-restore.log' to LaunchTerminals() 152 # - changed /usr/share/ to /usr/local/ 153 # 154 # 2001 155 # - fix some typos 156 # - added lots of cool stuff to make Mindi _nearly_ boot from tape 157 # - restructured the welcome msg echoed to screen 158 # - broke up spaghetti code; made lots of subroutines 159 # 5 # init script launched during the restore process 160 6 #------------------------------------------------------------ 161 7 … … 448 294 vgscan 449 295 fi 450 grep -E "^#.*vgchange" /tmp/i-want-my-lvm | sed s/#//> /tmp/start-lvm296 grep -E "^#.*vgchange" /tmp/i-want-my-lvm | sed "s/^#[ ]*//" > /tmp/start-lvm 451 297 chmod +x /tmp/start-lvm 452 298 echo -en "Starting LVM's..."
Note:
See TracChangeset
for help on using the changeset viewer.