Changeset 2540 in MondoRescue
- Timestamp:
- Jan 9, 2010, 4:40:53 PM (15 years ago)
- Location:
- devel
- Files:
-
- 9 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
devel/mindi/Makefile.PL
r2539 r2540 16 16 #ABSTRACT_FROM => 'sbin/mindi', # retrieve abstract from module 17 17 AUTHOR => 'Bruno Cornec <bruno#mondorescue.org>', 18 EXE_FILES => [ qw( sbin/mindi sbin/mr analyze-lvm sbin/mrprepare-lvm ) ],18 EXE_FILES => [ qw( sbin/mindi sbin/mrprepare-lvm ) ], 19 19 MAN1PODS => { 20 20 'sbin/mindi' => '$(INST_MAN1DIR)/mindi.$(MAN1EXT)', -
devel/mindi/etc/mindi.conf
r2149 r2540 47 47 mr_cache_dir mindi = /var/cache/mindi 48 48 mr_cache_dir mondoarchive = /var/cache/mondo 49 50 #51 # Temporary directory52 # Under it a temporary directory will be created to host all53 # temporary files for mindi. That subdirectory is erased at the end of mindi54 #55 mr_tmp_dir default = /tmp56 49 57 50 # … … 131 124 e.g. Type 'nuke donteject textonly' if you have an unstable Newt library and \n\ 132 125 a PC whose CD-ROM drive tray would be damaged if it unexpectedly ejected.\n 133 134 #135 # LVM commands and conf files136 # Is it LSB ?137 #138 mr_lvmdiskscan mindi = /usr/sbin/lvmdiskscan139 mr_lvmprocfile mindi = /proc/lvm/global140 mr_lvmcmd mindi = /usr/sbin/lvm141 mr_lvmpath mindi = /usr/sbin/ -
devel/mindi/post-install.sh
r2538 r2540 32 32 MINDIREV=PBREV 33 33 ARCH=`/bin/uname -m` 34 echo " mindi${MINDIVER}-r${MINDIREV} will be installed under $local"34 echo "PBPKG ${MINDIVER}-r${MINDIREV} will be installed under $local" 35 35 36 36 echo "Creating target directories ..." 37 37 install -m 755 -d $conf $sublocallib $sublocalshare $CACHEDIR 38 38 39 #echo "Copying files ..." 40 #cp -af rootfs $sublocallib/mindi 41 #chmod 755 $sublocallib/mindi/rootfs/sbin/* 42 #install -m 644 msg-txt dev.tgz $sublocallib/mindi 39 echo "Copying files ..." 40 cp -a etc/PBPKG.conf $conf 41 #cp -af rootfs $sublocallib 42 #chmod 755 $sublocallib/rootfs/sbin/* 43 #install -m 644 msg-txt dev.tgz $sublocallib 43 44 #install -m 644 deplist.txt udev.files proliant.files $conf 44 45 45 46 # Substitute variables for mindi 46 sed -i -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" $local/bin/ mindi47 sed -i -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" $local/bin/PBPKG 47 48 #sed -i -e "s~= "YYY"~= "$subconf"~" $local/bin/mindi-bkphw 48 49 49 50 if [ "$PKGBUILDMINDI" != "true" ]; then 50 chown -R root:root $sublocallib /mindi$conf51 chown -R root:root $sublocallib $conf 51 52 fi 52 53 -
devel/mindi/sbin/mindi
r2149 r2540 25 25 use ProjectBuilder::Distribution; 26 26 use ProjectBuilder::Display; 27 use MondoRescue:: Mindi::LVM;27 use MondoRescue::LVM; 28 28 use MondoRescue::Base; 29 29 -
devel/mindi/sbin/mrprepare-lvm
r2149 r2540 19 19 use ProjectBuilder::Distribution; 20 20 use MondoRescue::Base; 21 use MondoRescue:: Mindi::LVM;21 use MondoRescue::LVM; 22 22 23 23 =pod -
devel/mr/etc/mondorescue.conf
r2149 r2540 9 9 # mindi instable or cause failures. Use with care. 10 10 11 #12 # Extra space for Ram disk13 #14 mr_extra_space mindi = 2457615 16 #17 # Size of the boot image18 #19 mr_boot_size mindi = 1638420 21 #22 # deplist file name (stored in $MINDI_CONF)23 #24 mr_deplist_file mindi = deplist.txt25 26 #27 # Write mindi CD (true|false) ?28 #29 mr_boot_cd mindi = true30 31 #32 # Write mindi USB (true|false) ?33 #34 mr_boot_usb mindi = false35 36 #37 # Write mindi Tape (true|false) ?38 #39 mr_boot_tape mindi = false40 41 #42 # Images creation dir43 # WARNING: This directory is erased before usage44 # This is also the directory mondoarchive will use to find45 # what it needs to create it rescue media46 #47 mr_cache_dir mindi = /var/cache/mindi48 mr_cache_dir mondoarchive = /var/cache/mondo49 50 #51 11 # Temporary directory 52 12 # Under it a temporary directory will be created to host all … … 56 16 57 17 # 58 # USB Disk Device59 #60 mr_usb_device default = /dev/sda161 62 #63 # Tape Device64 #65 mr_tape_device default = /dev/st066 67 #68 # Additional Boot Parameters69 # You may want to remove acpi=off if you're unable to reboot on mindi's CD70 # You may want to add ramdisk_size=1024 if on Fedora Core 5/671 #72 mr_boot_params mindi = acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier mindi = off73 74 #75 # Kernel to use (NATIVE|FAILSAFE|PATH TO THE KERNEL)76 #77 mr_kernel default = NATIVE78 #mr_kernel mindi = /boot/vmlinuz.special79 80 #81 # Modules supported by mindi and required at boot time82 #83 mr_scsi_mods mindi = 3w-xxxx 3w_xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih mptsas mptspi mptfc mptscsi mptctl NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs84 mr_ide_mods mindi = ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_piix libata via82cxxx generic nvidia ahci sata_nv cmd64x85 mr_usb_mods mindi = usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd ohci-hcd ohci_hcd usbkbd usbhid86 mr_pcmcia_mods mindi = pcmcia_core ds yenta_socket87 mr_cdrom_mods mindi = cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate88 mr_tape_mods mindi = ht st osst ide-tape ide_tape89 mr_floppy_mods mindi = ide-floppy floppy90 mr_net_mods mindi = sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet91 mr_extra_mods mindi = vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache92 #93 # Additional modules to support94 # (white space separated list of modules)95 #96 mr_force_mods mindi =97 mr deny_mods mindi =98 99 #100 18 # Location of the fstab file 101 19 # 102 20 mr_fstab default = /etc/fstab 103 104 #105 # Location of the logfile106 #107 mr_log_file mindi = /var/log/mindi.log108 mr_log_file mondoarchive = /var/log/mondoarchive.log109 mr_log_file mondorestore = /var/log/mondorestore.log110 111 #112 # Interactive mode (true|false)113 #114 mr_interactive mindi = true115 116 #117 # Boot message shown during media boot118 #119 mr_boot_msg mindi = \120 To format and restore all files automatically, type 'nuke' <enter>.\n\121 To restore some/all files interactively, type 'interactive' <enter>.\n\122 To compare the archives with your filesystem, type 'compare' <enter>.\n\123 To boot to a command-line prompt (expert mode), type 'expert' <enter>.\n\124 You may add one or more of the following parameters as well:-\n\n\125 donteject - mondorestore will not eject the CD; this is useful if, for\n\126 instance, your PC's case has a concealed CD-ROM drive\n\127 noresize - your mountlist will not be adjusted to use your unallocated\n\128 hard disk space\n\129 textonly - do not call any Newt library routines; this is unattractive\n\130 but valuable if you find your Newt library has bugs in it\n\n\131 e.g. Type 'nuke donteject textonly' if you have an unstable Newt library and \n\132 a PC whose CD-ROM drive tray would be damaged if it unexpectedly ejected.\n133 21 134 22 # … … 136 24 # Is it LSB ? 137 25 # 138 mr_lvmdiskscan mindi= /usr/sbin/lvmdiskscan139 mr_lvmprocfile mindi= /proc/lvm/global140 mr_lvmcmd mindi= /usr/sbin/lvm141 mr_lvmpath mindi= /usr/sbin/26 mr_lvmdiskscan default = /usr/sbin/lvmdiskscan 27 mr_lvmprocfile default = /proc/lvm/global 28 mr_lvmcmd default = /usr/sbin/lvm 29 mr_lvmpath default = /usr/sbin/ -
devel/mr/lib/MondoRescue/Base.pm
r2539 r2540 19 19 use ProjectBuilder::Base; 20 20 use ProjectBuilder::Conf; 21 use MondoRescue::DynConf; 21 22 22 23 # Inherit from the "Exporter" module which handles exporting functions. … … 51 52 =cut 52 53 53 sub mr_ exit {54 sub mr_init { 54 55 55 56 my $msg = shift || ""; … … 60 61 61 62 # Get the various location determined at installation time 62 my ($confdir,$localdir,$pbproj) = mr_dyn _conf();63 my ($confdir,$localdir,$pbproj) = mr_dynconf_init(); 63 64 64 65 # First use the main configuration file 65 pb_conf_add("$confdir/$pbproj/$pbproj.conf"); 66 pb_conf_init($pbproj); 67 pb_conf_add("$confdir/$pbproj.conf"); 66 68 } 67 69 -
devel/mr/lib/MondoRescue/LVM.pm
r2538 r2540 8 8 # Provided under the GPL v2 9 9 10 package MondoRescue:: Mindi::LVM;10 package MondoRescue::LVM; 11 11 12 12 use strict 'vars'; … … 53 53 # Get params from the conf file 54 54 my ($lvmds_t,$lvmproc_t,$lvmcmd_t,$lvmpath_t) = pb_conf_get("mr_lvmdiskscan","mr_lvmprocfile","mr_lvmcmd","mr_lvmpath"); 55 my $lvmds = $lvmds_t->{ 'mindi'};56 my $lvmproc = $lvmproc_t->{ 'mindi'};57 my $lvmcmd = $lvmcmd_t->{ 'mindi'};58 my $lvmpath = $lvmpath_t->{ 'mindi'};55 my $lvmds = $lvmds_t->{$ENV{PBPROJ}}; 56 my $lvmproc = $lvmproc_t->{$ENV{PBPROJ}}; 57 my $lvmcmd = $lvmcmd_t->{$ENV{PBPROJ}}; 58 my $lvmpath = $lvmpath_t->{$ENV{PBPROJ}}; 59 59 60 60 if (! -x $lvmproc) { -
devel/mr/post-install.sh
r2539 r2540 44 44 45 45 cp etc/PBPROJ.conf $conf 46 cat > $ PERLDIR/MondoRescue/DynConf.pm << EOF46 cat > $HEAD$PERLDIR/MondoRescue/DynConf.pm << EOF 47 47 #!/usr/bin/perl -w 48 48 # … … 69 69 sub mr_dynconf_init { 70 70 71 return( $subconf,$sublocal,"PBPROJ");71 return("$subconf","$sublocal","PBPROJ"); 72 72 } 73 73 1; -
devel/mr/sbin/mranalyze-lvm
r2539 r2540 19 19 use ProjectBuilder::Distribution; 20 20 use MondoRescue::Base; 21 use MondoRescue:: Mindi::LVM;21 use MondoRescue::LVM; 22 22 23 23 =pod … … 133 133 pb_temp_init(); 134 134 135 # MondoRescue init 136 mr_init(); 137 135 138 # -------------------------------- main ----------------------------------- 136 139 # Where to send the output -
devel/mr/sbin/mrcheck-lvm
r2539 r2540 19 19 use ProjectBuilder::Distribution; 20 20 use MondoRescue::Base; 21 use MondoRescue:: Mindi::LVM;21 use MondoRescue::LVM; 22 22 23 23 =pod
Note:
See TracChangeset
for help on using the changeset viewer.