source: MondoRescue/branches/2.2.10/mindi/rootfs/sbin/start-usb@ 2481

Last change on this file since 2481 was 2462, checked in by Bruno Cornec, 15 years ago

r3548@localhost: bruno | 2009-10-16 19:18:27 +0200

  • mindi now boots in a QEMU VM without busybox
  • mindi is now noarch as a consequence
  • MINDI_LIB becomes MINDI_DATA for coherency and as a consequence
  • CACHEDIR becomes MINDI_CACHE for coherency and it's a build parameter and not hardcoded anymore in mindi
  • THat variable is also used at restore time for mondorestore.cfg e.g.
  • FAILSAFE kernel is gone. Just use another kernel of your choice. Most std kernels work anyway
  • TurnTgzIntoRdz rewritten and now really computes data disk size and not suppose its size
  • Interface mondo/mindi changed again => incompatible
  • Non-bootable media not supported anymore.
  • Mondorescue adapted to these changes but not tested yet
  • Doc updated as well
  • Property svn:executable set to *
File size: 724 bytes
RevLine 
[1698]1#!/bin/sh
2#
3# $Id$
4#
5# This script sets up the USB media
6#
7
8# Get info from config file
[2462]9MRUSBDEV=`grep usb-dev $MINDI_CACHE/mondorestore.cfg 2> /dev/null | cut -d' ' -f2-`
[1698]10
11# info from cmdline are predominent
[2329]12for i in `cat $CMDLINE` ; do
[2127]13 echo $i | grep -qi usb= && MRUSBDEV=`echo $i | cut -d= -f2`
[1698]14done
15
[2127]16if [ $MRUSBDEV = "" ]; then
[1698]17 # No usb configuration neither stored during archive
18 # nor on cmdline so no usb wanted => exiting
19 exit 0
20fi
21
[2127]22export MRUSBDEV
23
24echo -en "Mounting USB device (${MRUSBDEV}1) on /mnt/cdrom..."
[1729]25/sbin/modprobe usb-storage
[1732]26for i in 1 2 3 4 5 6 7 8 9 10 ; do
27 sleep 1
28 echo -en "."
29done
[2127]30mount -t vfat ${MRUSBDEV}1 /mnt/cdrom && LogIt "USB device (${MRUSBDEV}1) mounted on /mnt/cdrom"
[1732]31echo "."
Note: See TracBrowser for help on using the repository browser.