- Timestamp:
- May 13, 2006, 8:47:23 PM (19 years ago)
- Location:
- branches/stable
- Files:
-
- 21 deleted
- 60 edited
- 14 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/contrib/backup-kungfu/backup-kungfu
r538 r541 68 68 function remove_garbage { 69 69 echo -e "Removing the files left from previous mondoarchive run...\n" 70 rm -rf / var/cache/mondo70 rm -rf /root/images 71 71 rm -rf ${backup_dir}/mondo* 72 72 rm -rf ${backup_dir}/tmp* … … 107 107 echo -e "Creating the new backup directory and moving the files there...\n" 108 108 mkdir -p ${backup_dir}/${comp_name}_${date}/images 109 cp / var/cache/mindi/* ${backup_dir}/${comp_name}_${date}/images/109 cp /root/images/mindi/* ${backup_dir}/${comp_name}_${date}/images/ 110 110 111 111 # If you want just move the iso files without renaming them just uncomment the next line -
branches/stable/documentation/Makefile.howto
r508 r541 34 34 @rm -fr $(TARGET) 35 35 @docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml 36 @(cd $(TARGET) ; ln -sf ../$(IMAGESDIR) .)37 36 38 37 $(TARGET).html: $(SRC) $(DSL) $(IMAGES) … … 64 63 @echo "Delivering mondorescue howto" 65 64 @echo "" 66 @if [ "${INSTALLDIR}" != "" ]; then mkdir -p ${INSTALLDIR} ; cp -a $(TARGET).{html,pdf,ps,txt,rtf} $(TARGET) ${INSTALLDIR} ; else echo "No INSTALLDIR specified aborting install"; fi65 @if [ "${INSTALLDIR}" != "" ]; then mkdir -p ${INSTALLDIR} ; cp -a $(TARGET).{html,pdf,ps,txt,rtf} $(TARGET) ${INSTALLDIR} ; cp -a ${IMAGESDIR} ${INSTALLDIR}/$(TARGET) ; else echo "No INSTALLDIR specified aborting install"; fi -
branches/stable/documentation/mondoarchive.8
r493 r541 369 369 Backup PC using DVD Media: 370 370 .br 371 .I "mondoarchive -OVr -d /dev/scd0 -gF -s 4200m"371 .I "mondoarchive -OVr 2 -d /dev/scd0 -gF -s 4200m" 372 372 373 373 .BI TAPE: -
branches/stable/documentation/mondorescue-howto.sgml
r481 r541 2458 2458 </qandaentry> 2459 2459 <qandaentry> 2460 <question><para>Q: Where is my CD burner, in SCSI terms?</para></question> 2460 <question><para>Q: Where is my CD burner, in SCSI 2461 terms?</para></question> 2461 2462 <answer> 2462 2463 <para>A: Type:</para> … … 2484 2485 long as your kernel and modules support it, Mindi will support it 2485 2486 and therefore so will Mondo.</para> 2486 </answer>2487 </qandaentry>2488 <qandaentry>2489 <question><para>Q: Why doesn't cdrecord -scanbus work ?</para></question>2490 <answer>2491 <para>A: If you have a 2.4.x kernel (typical example are fedora legacy kernels for redhat 7.X/8/9) and an IDE CDRW device, and the drive is not2492 listed when you run2493 2494 <informaltable><tgroup cols="1"><tbody>2495 <row>2496 <entry>2497 bash# cdrecord -scanbus2498 </entry>2499 </row>2500 </tbody></tgroup></informaltable>2501 2502 try adding the following kernel option to your boot script to enable2503 SCSI emulation: hdx=ide-scsi, where "hdx" should be replaced with the2504 appropriate drive letter of the CDRW device, e.g., "hdc".2505 (Answer provided by Christopher Moriarity cdm7_at_cdc.gov)2506 </para>2507 2487 </answer> 2508 2488 </qandaentry> -
branches/stable/mindi/deplist.txt
r454 r541 1 # Mindi-Linux's dependency list 1 # Mindi-Linux's dependency list 07/10/2004 2 2 # 3 3 # NB: … … 5 5 # 2. If you put 'libncurses' (w/o quotation marks) on an uncommented line then 6 6 # Mindi will find /lib/libncurses* and include all matching files. 7 # 3. You have to give an absolute path 7 # 3. You may give an absolute path if you think Mindi will have trouble finding 8 # the file on its own. 8 9 # 4. If you want to add something, just add it on its own line. K.I.S.S. 9 10 # 5. You must _not_ put a semicolon & comment after an entry. e.g. 'foo; #bar'. 10 # 6. you can add also entries in a file inside the deplist.d subdirectory11 # 6. All these worlds are yours except Europa. Attempt no landing there. 11 12 12 #----- Kept for compatibility ----- 13 mkswapfs mkfs.swap mkfs.dos mkvfatfs mkfatfs mkfs.reiser mke3fs mkxfs mkjfs mkxfsfs mkjfsfs logdump logredo xchkdmp xchklog xpeek e2fsadm fsck.reiser 13 #------------------------- STUFF ADDED BY THE USER ---------------------------- 14 #---vvvv vvvv vvvv list your stuff here! vvvv vvvv vvvv 15 # 16 # bar 17 # foo 18 # 19 #---^^^^ ^^^^ ^^^^ list your stuff here! ^^^^ ^^^^ ^^^^ 20 #------------------------------------------------------------------------------ 21 22 #----- Covers a multitude of sins, including XFS, JFS, ReiserFS, and RAID ----- 23 mkfs mkswap mkswapfs mkfs.swap mkfs.ext2 mke2fs mkfs.vfat mkfs.dos mkdosfs mkvfatfs mkfatfs mkreiserfs mkfs.reiserfs mkfs.reiser mkfs.ext3 mke3fs mkfs.jfs mkfs.xfs mkxfs mkjfs mkxfsfs mkjfsfs logdump logredo xchkdmp xchklog xpeek mkpv mkraid raid0run raidhotadd raidhotremove raidsetfaulty raidstart raidstop e2label tune2fs e2fsadm mdadm 24 fsck fsck.ext2 fsck.reiserfs fsck.reiser fsck.xfs fsck.ext3 fsck.jfs badblocks 14 25 15 26 #-------------------------------- ESSENTIAL ----------------------------------- 16 conf.modules modules.conf.local ms-sys 17 less.bin less.dummy less.dupe less.hot.weather.in.texas.please 18 burnBX burnK6 burnK7 burnMMX burnP5 burnP6 lucifer tiobench tiotest bonnie++ mprime ide-smart 27 fstab raidtab modules.conf conf.modules mondorestore mt modules.conf.local 28 afio star ntfsclone parted ms-sys file getfattr setfattr getfacl setfacl 29 buffer 30 awk gawk 31 bzip2 bunzip2 lzop 32 date ctrlaltdel 33 dd 34 eject 35 grep ld-linux.so.2 ld-2.3.4.so 36 hosts host.conf resolv.conf hosts.allow hosts.deny 37 wc 38 xargs 39 gzip gunzip 40 klogd sysklogd 41 fdisk hdparm parted arch 42 less less.bin less.dummy less.dupe less.hot.weather.in.texas.please 43 loadkeys 44 mount 45 ping devfsd burnBX burnK6 burnK7 burnMMX burnP5 burnP6 lucifer tiobench tiotest bonnie++ mprime ide-smart 19 46 20 insmod.static insmod.static.old 47 # ------------------------------- for X (Hugo) -------------------------------- 48 #tar 49 #ldd lddlibc4 50 #libXmu 51 #libz 52 #X 53 #startx 54 #xinitrc 55 #xinit 56 #/etc/X11/XF86Config 57 #xauth 58 #libXext 59 # --- end of X stuff --- 60 61 insmod insmod.static insmod.static.old lsmod 62 63 #-------------------------- For mounting NFS volumes -------------------------- 64 ifconfig route /sbin/start-nfs 65 #ifconfig host.conf resolv.conf ping ip portmap rpc.statd 66 #rpc.lockd rpc.statd nfsstat rpc.nfsd rpc.mountd rpc.exportfs exportfs hosts exports hosts.allow hosts.deny showmount /etc/sysconfig/network /etc/sysconfig/network-scripts service usernetctl services protocols inetd inetd.conf /etc/rc.d ifup ifdown 67 68 21 69 22 70 #------------------------ Added for Stuart D. Gathman ------------------------- 23 71 #lc l lf netstat inetd tcpd in.telnetd route ldconfig ldd telnet rsh rcp services protocols rpc inetd.conf nsswitch.conf localtime security libresolv libutil libcrypt lbnss_compat libnss_files libnss_dns libpwdb libncurses 24 72 73 74 75 #------------------------- Part of the Cuckoo Project ------------------------- 76 #mkisofs 77 #cdrecord 78 #losetup 79 #fdformat 80 #lilo grub 81 #/usr/local/share/mondo 82 #mondoarchive 83 #mindi 84 #/usr/local/share/mindi 85 25 86 #----------------- For all you LVM users out there, much love ----------------- 26 87 LVMFILES: 27 lvmiopversion lvmcreate_initrd pvdata88 lvmiopversion lvchange lvcreate lvdisplay lvextend lvmchange lvmcreate_initrd lvmdiskscan lvmsadc lvmsar lvreduce lvremove lvrename lvscan pvchange pvcreate pvdata pvdisplay pvmove pvscan vgcfgbackup vgcfgrestore vgchange vgck vgcreate vgdisplay vgexport vgextend vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgscan vgsplit liblvm lvm lvm-10 /etc/lvm/lvm.conf 28 89 #------------------------------------------------------------------------------ -
branches/stable/mindi/distributions/gentoo/mindi.ebuild
r530 r541 1 1 # Copyright 1999-2005 Gentoo Foundation 2 2 # Distributed under the terms of the GNU General Public License v2 3 # $ Id$3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/mindi/mindi-1.04.ebuild,v 1.1 2005/01/22 10:29:25 wschlich Exp $ 4 4 5 5 DESCRIPTION="A program that creates emergency boot disks/CDs using your kernel, tools and modules." 6 6 HOMEPAGE="http://www.mondorescue.org" 7 SRC_URI="ftp://ftp. mondorescue.org/src/${P}.tgz"7 SRC_URI="ftp://ftp.berlios.de/pub/mondorescue/src/${P}.tgz" 8 8 9 9 LICENSE="GPL-2" … … 15 15 RDEPEND=">=app-arch/bzip2-0.9 16 16 >=sys-apps/mindi-kernel-1.0-r1 17 app-cdr/cdrtools 17 18 sys-libs/ncurses 18 19 sys-devel/binutils … … 22 23 src_unpack() { 23 24 unpack ${A} || die "Failed to unpack ${A}" 25 cd ${S}/rootfs || die 26 tar xzf symlinks.tgz || die "Failed to unpack symlinks.tgz" 27 28 # This will need to change when IA64 is tested. Obviously. 29 rm -f bin/busybox-ia64 sbin/parted2fdisk-ia64 30 mv bin/busybox-i386 bin/busybox 24 31 } 25 32 26 33 src_install() { 27 export PREFIX="/usr"28 export CONFDIR="/etc"29 export RPMBUILDMINDI="true"30 34 ./install.sh 31 35 } -
branches/stable/mindi/distributions/redhat/spec.m4
r494 r541 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz)dnl4 define(`SSS', %{name}-%{version}.tgz)dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 6 define(`DDD', %{addreqb}, which, grep >= 2.5)dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 define(`GRP', A pplications/Archiving)dnl8 define(`GRP', Archiving/Archiving)dnl -
branches/stable/mindi/distributions/rpm/mindi.spec
r494 r541 17 17 License: GPL 18 18 Group: %{grp} 19 Url: http:// www.mondorescue.org19 Url: http://mondorescue.berlios.de 20 20 Source: %{src} 21 BuildRoot: %{_tmppath}/%{name}-%{version} -%{release}-root-%(id -u -n)21 BuildRoot: %{_tmppath}/%{name}-%{version} 22 22 Requires: %{addreq} 23 Epoch: %(echo EEE | cut -d- -f1 | sed "s~M~~")24 23 # Not on all systems 25 24 #Conflicts: bonnie++ … … 32 31 33 32 %prep 33 %{__rm} -rf $RPM_BUILD_ROOT 34 34 %setup -n %name-%{version} 35 35 … … 41 41 42 42 %install 43 %{__rm} -rf $RPM_BUILD_ROOT44 43 export DONT_RELINK=1 45 44 45 %{__rm} -rf $RPM_BUILD_ROOT 46 46 export PREFIX=${RPM_BUILD_ROOT}%{_exec_prefix} 47 47 export CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir} … … 60 60 %files 61 61 %defattr(644,root,root,755) 62 %config(noreplace) %{_sysconfdir}/mindi 63 %config(noreplace) %{_sysconfdir}/mindi/deplist.txt 64 %config(noreplace) %{_sysconfdir}/mindi/deplist.d/* 65 %config(noreplace) %{_sysconfdir}/mindi/mindi.conf 62 %config(noreplace) %{_sysconfdir}/mindi/deplist.txt 66 63 %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log 67 64 %{_mandir}/man8/* 68 65 %{_libdir}/mindi 69 %attr(755,root,root) %{_sysconfdir}/mindi/mindi.conf70 66 %attr(755,root,root) %{_sbindir}/* 71 67 %attr(755,root,root) %{_libdir}/mindi/aux-tools/sbin/* -
branches/stable/mindi/install.sh
r488 r541 41 41 42 42 echo "Creating target directories ..." 43 install -m 755 -d $conf $ conf/deplist.d $locallib/mindi $MANDIR $local/sbin $DOCDIR43 install -m 755 -d $conf $locallib/mindi $MANDIR $local/sbin $DOCDIR 44 44 45 45 echo "Copying files ..." 46 46 install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $locallib/mindi 47 47 install -m 644 deplist.txt $conf 48 install -m 644 distributions/conf/deplist.d/* $conf/deplist.d49 install -m 755 distributions/conf/mindi.conf $conf50 48 51 49 cp -af rootfs aux-tools $locallib/mindi … … 53 51 chmod 755 $locallib/mindi/rootfs/sbin/* 54 52 chmod 755 $locallib/mindi/aux-tools/sbin/* 55 chmod 755 $conf/mindi.conf56 53 57 54 if [ "$RPMBUILDMINDI" = "true" ]; then … … 61 58 fi 62 59 chmod 755 $local/sbin/mindi 63 install -m 755 parted2fdisk.pl $local/sbin 64 install -m 755 analyze-my-lvm $locallib/mindi 60 install -m 755 analyze-my-lvm parted2fdisk.pl $local/sbin 65 61 66 62 install -m 644 mindi.8 $MANDIR … … 107 103 if [ "$RPMBUILDMINDI" != "true" ]; then 108 104 chown -R root:root $locallib/mindi $conf $DOCDIR 109 chown root:root $local/sbin/mindi $MANDIR/mindi.8 $local lib/mindi/analyze-my-lvm $local/sbin/parted2fdisk.pl105 chown root:root $local/sbin/mindi $MANDIR/mindi.8 $local/sbin/analyze-my-lvm $local/sbin/parted2fdisk.pl 110 106 if [ "$ARCH" = "ia64" ] ; then 111 107 chown root:root $local/sbin/parted2fdisk … … 113 109 fi 114 110 115 # Special case for SuSE family where doc is put elsewhere in the RPM116 if [ _"$dfam" = _"suse" ]; then117 rm -rf $DOCDIR118 fi119 120 111 exit 0 -
branches/stable/mindi/mindi
r538 r541 16 16 export ARCH=`/bin/arch` 17 17 18 ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off" 19 18 20 RUN_AFTER_INITIAL_BOOT_PHASE="echo \"Who lives in a pineapple under the sea?\" > /tmp/spongebob.squarepants.txt" 19 21 # after booting from floppy/CD image but before … … 33 35 MINDI_CONF=YYY 34 36 MINDI_SBIN=${MINDI_PREFIX}/sbin 37 35 38 36 39 if [ "$ARCH" = "x86_64" ] ; then … … 40 43 fi 41 44 42 MINDI_CONFIG="$MINDI_CONF/mindi.conf" 43 if [ ! -f $MINDI_CONFIG ]; then 44 echo "No $MINDI_CONFIG file found using sensible values" 45 else 46 . $MINDI_CONFIG 47 fi 48 49 # 50 # Manages defaults coming from conf files 51 # 52 if [ "$mindi_extra_space" == "" ]; then 53 EXTRA_SPACE=24576 54 else 55 EXTRA_SPACE=$mindi_extra_space 56 fi 57 if [ "$mindi_ia64_boot_size" == "" ]; then 58 IA64_BOOT_SIZE=8192 59 else 60 IA64_BOOT_SIZE=$mindi_ia64_boot_size 61 fi 62 if [ "$mindi_deplist_dir" == "" ]; then 63 DEPLIST_DIR="$MINDI_CONF/deplist.d" 64 else 65 DEPLIST_DIR="$mindi_deplist_dir" 66 fi 67 # TBC 68 if [ "$mindi_write_boot_floppy" == "" ]; then 69 WRITE_BOOT_FLOPPIES="yes" 70 else 71 WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy" 72 fi 73 # TBC 74 if [ "$mindi_write_cd" == "" ]; then 75 WRITE_MINDI_CD="yes" 76 else 77 WRITE_MINDI_CD="$mindi_write_cd" 78 fi 79 # TBC 80 if [ "$mindi_images_dir" == "" ]; then 81 CACHEDIR="/var/cache/mindi" 82 else 83 CACHEDIR="$mindi_images_dir" 84 fi 85 if [ "$mindi_dual_floppies" == "" ]; then 86 FORCE_DUAL_FLOPPIES="/var/cache/mindi" 87 else 88 FORCE_DUAL_FLOPPIES="$mindi_dual_floppies" 89 fi 90 if [ "$mindi_tmp_dir" == "" ]; then 91 TMP_ROOT="/tmp" 92 else 93 TMP_ROOT="$mindi_tmp_dir" 94 fi 95 if [ "$mindi_fd_device" == "" ]; then 96 FDDEVICE="/dev/fd0" 97 else 98 FDDEVICE="$mindi_fd_device" 99 fi 100 if [ "mindi_boot_params" == "" ]; then 101 ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off" 102 else 103 ADDITIONAL_BOOT_PARAMS="$mindi_boot_params" 104 fi 105 106 107 # Other parameters 108 # Useless ?? 45 EXTRA_SPACE=24576 ; # increase if you run out of ramdisk space 46 IA64_BOOT_SIZE=8192 ; # size of the ia64 boot disk 47 TMP_ROOT=/tmp 48 WRITE_BOOT_FLOPPIES="yes" ; # do you want to be propted to write floppy images 109 49 PROMPT_WRITE_BOOT_FLOPPIES="yes" 110 50 # do you want to be prompted to write … … 120 60 # you want to use your own kernel, or the supplied default. 121 61 # If "yes" mindi will automatically use your own kernel. 122 62 MINDI_CONFIG="$MINDI_CONF/mindi.conf" 63 if [ -f $MINDI_CONFIG ]; then 64 . $MINDI_CONFIG 65 fi 123 66 MY_FSTAB=/etc/fstab 124 67 FLOPPY_MODS="ide-floppy floppy" 125 68 TAPE_MODS="ht st osst ide-tape ide_tape" 126 SCSI_MODS="3 w-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 ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 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 vmhgfs"69 SCSI_MODS="3c59x 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 ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 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 vmhgfs" 127 70 128 71 # ide-probe-mod … … 131 74 USB_MODS="usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd usbkbd" 132 75 CDROM_MODS="$TAPE_MODS $FLOPPY_MODS $IDE_MODS af_packet cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate $USB_MODS $PCMCIA_MODS" 133 NET_MODS="sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390vmxnet"134 EXTRA_MODS="$CDROM_MODS vfat fat loop md-mod linear raid0 raid1 xorraid5 lvm-mod dm-mod jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd"76 NET_MODS="sunrpc nfs nfs_acl lockd loop mii e100 bcm5700 e1000 eepro100 tg3 pcnet32 vmxnet" 77 EXTRA_MODS="$CDROM_MODS vfat fat loop linear raid0 raid1 raid5 lvm-mod dm-mod jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd" 135 78 LOGFILE=/var/log/mindi.log 79 FDDEVICE=/dev/fd0 ; # 1.44MB floppy #0 80 CACHE_LOC=/var/cache/mondo-archive 81 FORCE_DUAL_FLOPPIES=no 136 82 137 83 BOOT_MEDIA_MESSAGE="\ … … 219 165 Aborted() { 220 166 trap SIGHUP SIGTERM SIGTRAP SIGINT 221 rm -f $CACHEDIR/mindi*img $CACHEDIR/*gz $CACHEDIR/mindi.iso167 [ "$imagesdir" != "" ] && rm -f $imagesdir/mindi*img $imagesdir/*gz $imagesdir/mindi.iso 222 168 [ "$minidir_root" != "" ] && rm -Rf $minidir_root/* 223 169 Die "User abort." … … 334 280 biggienumber=$4 335 281 336 [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist fileaccordingly."282 [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist.txt accordingly." 337 283 mkdir -p $outdir 338 284 … … 506 452 [ "$?" -ne "0" ] && cat /tmp/mke2fs.$$ 507 453 rm -f /tmp/mke2fs.$$ 508 mount -t ext2 -o loop $imagefile $mountpoint || Die "Can't loopmount $ imagefile to $mountpoint! The reason may be missing support for loopfs or ext2 (or both) in the running kernel."454 mount -t ext2 -o loop $imagefile $mountpoint || Die "Can't loopmount $mountpoint; does your kernel support loopfs? If not, please recompile your kernel. Your Linux distro is broken." 509 455 mv $tarball $mountpoint/ 510 456 if [ "$?" -ne "0" ] ; then 511 457 umount $mountpoint 512 Die "Tarball $tarball is too big for disk! (CODI)\nTell dev teamto adjust MAX_COMPRESSED_SIZE"458 Die "Tarball $tarball is too big for disk! (CODI)\nTell Hugo to adjust MAX_COMPRESSED_SIZE" 513 459 fi 514 460 [ "$diskno" -eq "$noof_disks" ] && echo "This is the last disk ($diskno=$noof_disks)" >> $mountpoint/LAST-DISK … … 544 490 my_partitions=`mount | fgrep $$ | cut -f1 -d' '` 545 491 [ "$my_partitions" != "" ] && umount $my_partitions 546 # BCO : Too Dangerous !!! 547 #[ "$TMP_ROOT" != "/tmp" ] && rm -Rf $TMP_ROOT 492 [ "$TMP_ROOT" != "/tmp" ] && rm -Rf $TMP_ROOT 548 493 cd /tmp 549 494 mkdir -p mindi.err … … 684 629 echo "MINDI_CONF = $MINDI_CONF" >> $LOGFILE 685 630 echo "MONDO_SHARE = $MONDO_SHARE" >> $LOGFILE 686 mkdir -p $CACHE DIR631 mkdir -p $CACHE_LOC 687 632 } 688 633 … … 881 826 echo "$fname" >> $outfile.pre 882 827 cat $tempdepfile >> $outfile.pre 828 # echo "$fname ----> dependencies:-" >> $LOGFILE 829 # cat $tempdepfile | tr -s '/' '/' | sort -u >> $LOGFILE 830 # echo -en "(end of deplist of $fname)\n\n" >> $LOGFILE 883 831 rm -f $tempdepfile 884 832 progress=$(($progress+1)) … … 1306 1254 if [ $tmpmodprobe_flag == "Y" ] ; then 1307 1255 infile="/tmp/modprobe.conf.mindi.$$" 1308 find /etc/modprobe.d -maxdepth 1 -name "*" -xtype f -print0 | xargs -0 cat> $infile1256 find /etc/modprobe.d -maxdepth 1 -name "*" -xtype f > $infile 1309 1257 else 1310 1258 infile="/etc/modules.conf" … … 1382 1330 [ "`echo "$c_p" | grep -x "/dev/cdroms.*"`" ] && continue 1383 1331 if [ -h "$c_p" ] && [ "`echo "$c_p" | fgrep "/dev/hd"`" = "" ] && [ "`echo "$c_p" | fgrep "/dev/sd"`" = "" ] && [ "`echo "$c_p" | fgrep "/dev/md"`" = "" ] ; then 1384 current_partition=`ResolveSoftlink $c_p`1332 current_partition=`ResolveSoftlink $c_p` 1385 1333 [ "`echo "$current_partition" | fgrep "/dev/mapper"`" != "" ] && current_partition="$c_p" 1386 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | fgrep "$current_partition"`" ] && continue1334 [ "`echo "/dev/scd0 /dev/scd1 /dev/sr0 /dev/sr1 /dev/cdrom /dev/cdrom1" | fgrep "$current_partition"`" ] && continue 1387 1335 else 1388 1336 current_partition="$c_p" 1389 1337 fi 1390 1338 [ "$c_p" = "none" ] && continue 1391 absolute_partition=`ResolveSoftlink $c_p` 1392 partition_mountpt=`tr -s '\t' ' ' < $MY_FSTAB | /bin/grep -w "$current_partition" | /bin/grep -vx " *#.*" | $AWK '{print $2}' | head -n1` 1393 1394 # This part tries to retrieve the correct device from a LABEL line in /etc/fstab 1395 # current_partition contains only first column of /etc/fstab 1396 if [ "`echo "$current_partition" | /bin/grep -f -i "LABEL="`" != "" ] ; then 1339 absolute_partition=`ResolveSoftlink $c_p` 1340 partition_mountpt=`tr -s '\t' ' ' < $MY_FSTAB | grep -w "$current_partition" | grep -vx " *#.*" | $AWK '{print $2}' | head -n1` 1341 redhat_label="" 1342 if [ "`echo "$current_partition" | fgrep -i "LABEL="`" != "" ] ; then 1397 1343 str_to_find_fmt_with=$current_partition 1398 redhat_label=`echo "$current_partition" | /bin/cut -d'=' -f2` 1399 actual_dev="" 1400 1401 # 1st try : blkid, the good way 1402 if [ -x "/sbin/blkid" ] ; then 1403 actual_dev=`/sbin/blkid | /bin/grep "$current_partition" | /bin/cut -d':' -f1` 1404 fi 1405 1406 # 2nd try, which works on a standard partition (ext2/3), but not on swap 1407 if [ "x$actual_dev" = "x" ] ; then 1408 actual_dev=`/bin/mount -l | /bin/grep " [$redhat_label]" | /bin/cut -d' ' -f1` 1409 fi 1410 1411 # 3rd try, with vol_id (which works with swap) 1412 if [ "x$actual_dev" = "x" -a -x "/sbin/vol_id" ] ; then 1413 list_swaps=`cat /proc/swaps | /bin/grep "/dev/" | /bin/awk '{ print $1 }' ` 1414 for dev_swap in $list_swaps ; do 1415 dev_exists=`/sbin/vol_id $dev_swap | /bin/grep "$redhat_label"` 1416 if [ "x$dev_exists" != "x" ] ; then 1417 actual_dev=$dev_swap 1418 break; 1419 fi 1420 done 1421 fi 1422 1423 # 4th try : pre-formated LABEL. Format is : LABEL=SWAP-mydevice. e.g. : LABEL=SWAP-hda5 1424 if [ "x$actual_dev" = "x" -a "`echo "$current_partition" | /bin/grep -i "LABEL=SWAP"`" != ""] ; then 1425 try_dev="`echo "$redhat_label" | /bin/cut -d '-' -f2`" 1426 present_dev="`/bin/cat /proc/swaps | /bin/grep -w /dev/$try_dev`" 1427 if [ "x$present_dev" != "x" ] ; then 1428 actual_dev="/dev/$try_dev" 1429 fi 1430 fi 1431 1432 # Check if one of all those tries has known success 1433 if [ "x$actual_dev" != "x" ] ; then 1434 current_partition=$actual_dev 1435 else 1436 Die "Your system uses a labelled swap partition, but you lack the tool to support it.\nPlease replace swap labels with their correct devices in /etc/fstab\n" 1437 fi 1344 redhat_label=`echo "$current_partition" | cut -d'=' -f2` 1345 actual_dev=`mount -l | fgrep " [$redhat_label]" | cut -d' ' -f1` 1346 # partition_mountpt=$redhat_label 1347 current_partition=$actual_dev 1438 1348 else 1439 1349 str_to_find_fmt_with=$current_partition 1440 1350 fi 1441 1442 1351 partition_format=`$AWK '$1 == "'"$str_to_find_fmt_with"'" {print $3}' $MY_FSTAB` 1443 1352 if [ -d "/proc/lvm" ] && [ "`lvdisplay $current_partition 2> /dev/null`" ] ; then … … 1626 1535 1627 1536 1537 OfferToCopyImagesToDisks() { 1538 local imagesdir i imagename dev count boot_dev data_dev 1539 imagesdir=$1 1540 boot_dev=$2 1541 data_dev=$3 1542 echo -en "Would you like to create boot+data floppy disks now (y/n) ?" 1543 read i 1544 [ "$i" != "y" ] && [ "$i" != "Y" ] && return 1545 mount | fgrep /dev/fd > /dev/null && Die "Please unmount your floppies first." 1546 echo "WARNING! THIS WILL ERASE YOUR FLOPPY DISKS." 1547 [ ! -e "$boot_dev" ] && Die "Cannot find $boot_dev - is your Linux distro broken?" 1548 [ ! -e "$data_dev" ] && Die "Cannot find $data_dev - is your Linux distro broken?" 1549 i=`find $imagesdir -type f | fgrep "/mindi-root.1" 2> /dev/null` 1550 j=`find $imagesdir -type f | fgrep "/mindi-boot" | egrep -v '2880|5760'` 1551 # echo "i=$i" 1552 # echo "j=$j" 1553 if [ "$i" ] ; then 1554 CopyImageToDisk $j $data_dev "boot disk" 1555 CopyImageToDisk $i $data_dev "root disk" 1556 else 1557 CopyImageToDisk $j $boot_dev "boot/root disk" 1558 fi 1559 count=1 1560 for i in `find $imagesdir | fgrep mindi-data` ; do 1561 CopyImageToDisk $i $data_dev "data disk #$count" 1562 count=$(($count+1)) 1563 done 1564 } 1565 1628 1566 1629 1567 … … 1659 1597 cp $kernelpath $TMP_ROOT/iso/isolinux/vmlinuz || Die "Cannot copy vmlinuz ($kernelpath) to mondo root ($MONDO_ROOT/isolinux/vmlinuz). Did you run out of disk space?" 1660 1598 cp $TMP_ROOT/mindi.rdz $TMP_ROOT/iso/isolinux/initrd.img 1661 cp $TMP_ROOT/mindi.rdz $ CACHEDIR/initrd.img1599 cp $TMP_ROOT/mindi.rdz $imagesdir/initrd.img 1662 1600 [ -e "$iso_cfg_file" ] || Die "FIXME - unable to find $iso_cfg_file - this should never occur" 1663 1601 cd $TMP_ROOT/iso/isolinux … … 1680 1618 fi 1681 1619 if [ "$ARCH" != "ia64" ] ; then 1682 mkisofs -U -J -r -o $ CACHEDIR/mindi.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> /tmp/$$.mk1683 else 1684 mkisofs -J -r -o $ CACHEDIR/mindi.iso -b images/mindi-bootroot.$IA64_BOOT_SIZE.img -c isolinux/boot.cat -no-emul-boot . > /dev/null 2> /tmp/$$.mk1620 mkisofs -U -J -r -o $imagesdir/mindi.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> /tmp/$$.mk 1621 else 1622 mkisofs -J -r -o $imagesdir/mindi.iso -b images/mindi-bootroot.$IA64_BOOT_SIZE.img -c isolinux/boot.cat -no-emul-boot . > /dev/null 2> /tmp/$$.mk 1685 1623 fi 1686 1624 if [ "$?" -ne "0" ] ; then … … 1691 1629 LogIt "Failed to create ISO image.\n" 1692 1630 else 1693 echo "Created bootable ISO image at $ CACHEDIR/mindi.iso" >> $LOGFILE1631 echo "Created bootable ISO image at $imagesdir/mindi.iso" >> $LOGFILE 1694 1632 fi 1695 1633 rm -f /tmp/$$.mk … … 1796 1734 return $res 1797 1735 1736 # --- the kernel-only method NO LONGER WORKS. Not since Apr 2002. 1737 # It should work, according to the Boot Disk HOWTO, but it doesn't. 1738 # It works for my failsafe kernel & for RH7.2 but not RH7.3, 8.0, etc. 1739 # -Hugo, Apr 19th 2004 1740 # dd if=$1 of=$2 bs=1k &> /dev/null || Die "Cannot dd blank file" 1741 # dd if=/dev/zero bs=1k count=$3 >> $2 2> /dev/null || Die "Cannot dd blank file" 1742 # mv -f $2 $2.old 1743 # dd if=$2.old bs=1k count=$3 of=$2 &> /dev/null || Die "Cannot dd blank file" 1744 # rm -f $2.old 1745 # if [ "$3" = "1440" ] ; then 1746 # rdev $2 "/dev/fd0H"$3 1747 # else 1748 # rdev $2 "/dev/fd0u"$3 1749 # fi 1750 # rdev -R $2 0 1751 # rdev -r $2 49152 1798 1752 } 1799 1753 … … 2145 2099 [ "$retval" -ne "0" ] && LogIt "PrepareBootDiskImage() is returning nonzero\n" 2146 2100 return $retval 2101 } 2102 2103 2104 2105 2106 PrepareDataDiskImages() { 2107 local needlist bigdir minidir_root tardir diskdir imagesdir res i j k old_pwd lines 2108 2109 imagesdir=$1 2110 rm -f $imagesdir/mindi-*.img $imagesdir/[0-9]*.tar.gz $imagesdir/mindi.iso 2111 needlist=$TMP_ROOT/what-we-need.txt 2112 bigdir=$TMP_ROOT/bigdir 2113 minidir_root=$TMP_ROOT/minidir 2114 mkdir -p $minidir_root 2115 mkdir -p $bigdir/usr/bin 2116 tardir=$TMP_ROOT/tardir 2117 2118 lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt | grep -vx "" | wc -l` 2119 cat $MINDI_CONF/deplist.txt | GenerateGiantDependencyList $needlist $lines 2120 res=$? 2121 if [ "$YOUR_KERNEL_SUCKS" ]; then 2122 pwd=`pwd` 2123 cd $TMP_ROOT 2124 for i in `ListKernelModulePaths | HackPathsToFailsafe` ; do 2125 cp --parents -pRdf ./$i $bigdir || Die "PDDI can't cp $i->$bigdir" 2126 if [ "`du -sk $i | cut -f1`" -lt "$(($CHOPSIZE*2))" ] ; then 2127 cp --parents -pRdf $i $bigdir 2128 else 2129 ChopUpAndCopyFile $i $bigdir $CHOPSIZE $BIGNO 2130 BIGNO=$(($BIGNO+1)) 2131 fi 2132 done 2133 for i in $EXTRA_MODS ; do 2134 j=`find lib/modules/$FAILSAFE_KVER -name $i.*o 2> /dev/null` 2135 [ ! "$j" ] && echo "Warning - cannot find failsafe module $i.o" >> $LOGFILE 2136 for k in $j ; do 2137 if [ "`du -sk $k | cut -f1`" -lt "$CHOPSIZE" ] ; then 2138 cp --parents -pRdf $k $bigdir 2139 else 2140 ChopUpAndCopyFile $k $bigdir $CHOPSIZE $BIGNO 2141 BIGNO=$(($BIGNO+1)) 2142 fi 2143 echo "Added failsafe module $k to ramdisk" >> $LOGFILE 2144 done 2145 done 2146 cd $pwd 2147 else 2148 ListKernelModulePaths >> $needlist 2149 fi 2150 if [ "$res" -ne "0" ] ; then 2151 Die "You have $res file`PluralOrNot $res` present in dependency list\nbut absent from filesystem." 2152 fi 2153 FindAndAddUserKeyboardMappingFile 2154 mkdir -p $bigdir/tmp 2155 if [ "`DidMondoCallMe`" ] ; then 2156 MakeMondoConfigFile $TMP_ROOT/mondo-restore.cfg 2157 cp -f $TMP_ROOT/mondo-restore.cfg $bigdir/tmp &> /dev/null 2158 cp -f $TMP_ROOT/mondo-restore.cfg $CACHE_LOC &> /dev/null 2159 fi 2160 [ -d "/mnt/.boot.d" ] && echo "Oh Jebus" > $bigdir/tmp/DUMBASS-GENTOO 2161 DropOptimizedLibraries $needlist $bigdir 2162 echo -en "Assembling dependency files" 2163 CopyDependenciesToDirectory < $needlist $bigdir 2164 2165 # also copy io.sys and msdos.sys, if we can find them 2166 for i in `mount | cut -d' ' -f3` ; do 2167 for j in io.sys msdos.sys ; do 2168 [ -e "$i/$j" ] && cp -f $i/$j $bigdir 2169 done 2170 done 2171 2172 # master boot record, too 2173 i=`cat $MONDO_TMP/BOOTLOADER.DEVICE 2> /dev/null` 2174 if [ "$i" ] ; then 2175 LogIt "Backing up $i's MBR\n" 2176 dd if=$i of=$bigdir/BOOTLOADER.MBR bs=446 count=1 >> $LOGFILE 2>> $LOGFILE 2177 # < < E O F 2178 sleep 1 2179 sync 2180 # [ "$?" -ne "0" ] && echo "Failed to save $i's MBR to bigdir" >> $LOGFILE 2181 j=$i 2182 [ -h "$j" ] && j=`ResolveSoftlink $j` 2183 LogIt "Creating /dev/boot_device ($j)\n" 2184 mkdir -p $bigdir/dev 2185 cp -pRdf $j $bigdir/dev/boot_device || Die "Unable to create /dev/boot_device on ramdisk" 2186 fi 2187 2188 # more stuff 2189 # cp -f $MINDI_LIB/embleer* $bigdir 2190 old_pwd=`pwd` 2191 cd $bigdir 2192 2193 [ -e "$MINDI_LIB/aux-tools" ] || Die "aux-tools not found in Mindi's home dir. Do you have multiple copies of Mindi lying around? Please delete them. No, don't e-mail me and ask how. ;) Use 'rm'." 2194 cp -Rdf $MINDI_LIB/aux-tools/* . 2>> $LOGFILE || LogIt "Warning - error occurred while unzipping aux-tools\n" 2195 if [ -e "$MINDI_LIB/x11-tools.tgz" ] ; then 2196 tar -zxf $MINDI_LIB/x11-tools.tgz 2>> $LOGFILE || LogIt "Warning - error occurred while unzipping x11-tools.tgz\n" 2197 fi 2198 if [ -e "$MONDO_SHARE/restore-scripts" ] ; then 2199 cp -Rdf $MONDO_SHARE/restore-scripts/* . 2>> $LOGFILE 2200 [ "$?" -ne "0" ] && [ "`DidMondoCallMe`" ] && Die "Cannot find/install $MONDO_SHARE/restore-scripts" 2201 fi 2202 [ -d "/lib/dev-state" ] && cp --parents -pRdf /lib/dev-state . 2203 cd $old_pwd 2204 echo -e "$DONE" 2205 TOTAL_BIGDIR_SIZE=`du -sk $bigdir | cut -f1` 2206 SplitDirectoryIntoMinidirs $bigdir $minidir_root 2207 noof_disks=$? 2208 [ "$noof_disks" -eq "0" ] && Die "Too much stuff!" 2209 # if [ "$noof_disks" -ge "8" ] ; then 2210 # LogIt "You are putting a ludicrously large amount of data on these disks." 2211 # LogIt "I shall therefore double EXTRA_SPACE, just in case your ramdisk is too small." 2212 # EXTRA_SPACE=$(($EXTRA_SPACE*2)) 2213 # fi 2214 MakeMountlist $TMP_ROOT/mountlist.txt 2215 mkdir -p $minidir_root/$noof_disks/tmp 2216 cp -f $TMP_ROOT/mountlist.txt $minidir_root/$noof_disks/tmp/mountlist.txt || Die "Cannot copy mountlist.txt from $TMP_ROOT to data disk" 2217 cp -f $TMP_ROOT/mountlist.txt $CACHE_LOC 2218 [ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MONDO_TMP/. 2219 [ -d "/proc/lvm" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm 2220 [ -d "/dev/mapper" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm 2221 cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE 2222 ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks 2223 CreateDataDiskImagesFromTarballs $tardir $imagesdir $noof_disks 2224 FRIENDLY_OUTSTRING="Boot and data disk images were created." 2225 # One 1.72MB boot disk, one 2.88MB boot disk and $noof_disks data disk images 2226 rmdir $tardir $bigdir 2227 rm -f $needlist 2228 return $noof_disks 2147 2229 } 2148 2230 … … 2453 2535 root="/" 2454 2536 fi 2455 for fname in `find $root -maxdepth 2 -type f | fgrep lin | egrep -v '^/proc/|^/net/'` ; do2537 for fname in `find $root -maxdepth 2 -type f | fgrep lin | fgrep -v /proc/` ; do 2456 2538 [ ! -e "$fname" ] && continue 2457 2539 [ "$fname" = "/boot/vmlinuz.shipped" ] && [ -f "/boot/vmlinuz" ] && continue; # ignore SuSE's extra kernel … … 2613 2695 echo -en "..." 2614 2696 mkdir -p $mountpoint 2615 mount -t ext2 -o loop $tempfile $mountpoint || Die "Cannot loopmount $tempfile to $mountpoint ! The reason may be missing support for loopfs or ext2 (or both) in the running kernel."2697 mount -t ext2 -o loop $tempfile $mountpoint || Die "Cannot loopmount $tempfile to $mountpoint" 2616 2698 echo -en "..." 2617 2699 old_pwd=`pwd` … … 2773 2855 while [ "$diskno" -le "$noof_disks" ] ; do 2774 2856 cd $minidir_root/$diskno || LogIt "Warning - cannot cd to $minidir_root/$diskno\n" 2775 tar -cf - . 2>> $LOGFILE | gzip -9 > $tardir/$diskno.tar.gz || Die "Can't tar/gzip disk#$diskno; please tell dev team-exactly- what the errors where."2857 tar -cf - . 2>> $LOGFILE | gzip -9 > $tardir/$diskno.tar.gz || Die "Can't tar/gzip disk#$diskno; please tell Hugo -exactly- what the errors where." 2776 2858 diskno=$(($diskno+1)) 2777 2859 echo -n "..." … … 2821 2903 2822 2904 2905 #AWK=`which gawk` 2906 #LocateDeps $1 2907 #MakeModuleLoadingScript /tmp/load-modules.sh 2908 #exit 0 2909 2910 2911 #cat /etc/mindi/deplist.txt | GenerateGiantDependencyList /tmp/deplist.old 200 2912 #exit 0 2913 2914 2915 2823 2916 if [ "$1" = "-V" ] || [ "$1" = "-v" ] || [ "$1" = "--version" ] || [ "$1" = "-version" ] ; then 2824 2917 echo "mindi v$MINDI_VERSION" 2825 exit 02826 fi2827 2828 if [ "$1" = "-printvar" ] ; then2829 shift2830 if [ _"$1" != _"" ] ; then2831 set | egrep "^$1" | cut -d= -f22832 fi2833 2918 exit 0 2834 2919 fi … … 2882 2967 BIGNO=0 2883 2968 MAX_COMPRESSED_SIZE=1300 2884 imagesdir=$CACHEDIR 2969 imagesdir=/root/images/mindi 2970 mkdir -p $imagesdir 2885 2971 kernelpath="" 2886 2972 MONDO_ROOT=/tmp/mindilinux/mondo-root … … 2917 3003 exit $? 2918 3004 elif [ "$1" = " --version" ] || [ "$1" = "-v" ] ; then 2919 3005 echo "Mindi v$MINDI_VERSION" 2920 3006 exit 0 2921 3007 elif [ "$#" -ge "9" ] && [ "$1" = "--custom" ] ; then 2922 2923 2924 2925 3008 TMP_ROOT=$2 3009 MONDO_TMP=$2 3010 imagesdir=$3 3011 kernelpath=$4; [ "$kernelpath" = "(null)" ] && kernelpath="" 2926 3012 ### 2927 3013 ### Sq-Modification... … … 2930 3016 ### 2931 3017 kernelname=`echo $kernelpath | cut -d'-' -f2-` 2932 2933 3018 LogIt "kernelname = $kernelname\n" 3019 LogIt "kernelpath = $kernelpath\n" 2934 3020 if [ ! -d "/lib/modules/$kernelname" ] && [ "$kernelpath" != "FAILSAFE" ] 2935 3021 then … … 2943 3029 ### end of Sq-Modification 2944 3030 ### 2945 2946 2947 2948 2949 3031 TAPEDEV=$5 3032 TAPESIZE=$6 3033 FILES_IN_FILELIST=$7 3034 USE_LZO=$8 3035 CDRECOVERY=$9 2950 3036 if [ "${10}" = "(null)" ] || [ "${10}" = "" ] ; then 2951 3037 IMAGE_DEVS="" … … 2953 3039 IMAGE_DEVS="`echo "${10}" | tr '|' ' '`" 2954 3040 fi 2955 2956 3041 if [ "${11}" ] ; then 3042 LILO_OPTIONS="" 2957 3043 # LogIt "LILO will use conservative settings, to be compatible with older BIOSes." 2958 2959 3044 fi 3045 LAST_FILELIST_NUMBER=${12} 2960 3046 ESTIMATED_TOTAL_NOOF_SLICES=${13} 2961 3047 EXCLUDE_DEVS="${14}" 2962 3048 USE_COMP="${15}" 2963 3049 USE_LILO="${16}" 2964 2965 3050 USE_STAR="${17}" 3051 INTERNAL_TAPE_BLOCK_SIZE="${18}" 2966 3052 DIFFERENTIAL="${19}" 2967 3053 NOT_BOOT="${20}" 2968 3054 [ "$USE_COMP" = "" ] && USE_COMP=yes 2969 3055 [ "$NOT_BOOT" = "" ] && NOT_BOOT=no 2970 2971 3056 [ "$TAPEDEV" ] && LogIt "This is a tape-based backup. Fine.\n" 3057 [ "$kernelpath" = "" ] && kernelpath=`TryToFindKernelPath` 2972 3058 kernelname=`echo $kernelpath | cut -d'-' -f2-` 2973 3059 if [ ! -d "/lib/modules/$kernelname" ] && [ "$kernelpath" != "FAILSAFE" ] … … 2979 3065 LogIt "Using modules for kernel: ${kernelname}\n" 2980 3066 fi 2981 3067 [ "$CDRECOVERY" = "yes" ] && [ "$TAPEDEV" != "" ] && Die "Sorry, you can't use --cd-recovery and --write-tapes at the same time" 2982 3068 MONDO_ROOT=`echo $imagesdir | sed 's/\(.*\)\/.*/\1/'` 2983 2984 else 2985 2986 3069 [ "$MONDO_ROOT" = "" ] && Die "MONDO_ROOT is undefined" 3070 else 3071 echo "Syntax: mindi (--custom ....)" >> /dev/stderr 3072 exit 1 2987 3073 fi 2988 3074 fi … … 2998 3084 2999 3085 3086 3087 3088 #ReplaceIndividualLine /tmp/init `grep -n "#WHOLIVESINAPINEAPPLEUNDERTHESEA#" /tmp/init | cut -d':' -f1` "$RUN_AFTER_INITIAL_BOOT_PHASE" 3089 #exit 0 3090 3091 3092 #ListKernelModules 3093 #exit 0 3094 3095 3096 3097 3000 3098 [ -e "$iso_cfg_file" ] || Die "Cannot find $iso_cfg_file" 3001 3099 rm -Rf $TMP_ROOT/mindilinux/* 3002 3100 TMP_ROOT=$TMP_ROOT/mindilinux/$$ 3003 3101 mkdir -p $TMP_ROOT 3102 mkdir -p $imagesdir 3004 3103 if [ ! "`DidMondoCallMe`" ] ; then 3005 3104 LogIt "Mindi Linux mini-distro generator v$MINDI_VERSION\n" 3006 LogIt "Latest Mindi is available from http:// www.mondorescue.org\n"3105 LogIt "Latest Mindi is available from http://mondorescue.berlios.de\n" 3007 3106 LogIt "BusyBox sources are available from http://www.busybox.net\n" 3008 3107 LogIt "------------------------------------------------------------------------------" … … 3046 3145 fi 3047 3146 if [ "$USE_OWN_KERNEL" = "yes" ]; then 3048 3049 3050 3051 3052 3053 3054 else 3055 3147 YOUR_KERNEL_SUCKS="" 3148 kernelpath=`TryToFindKernelPath` 3149 if [ "$kernelpath" = "" ] ; then 3150 echo -n "Please enter kernel path : " 3151 read kernelpath 3152 fi 3153 else 3154 YOUR_KERNEL_SUCKS="That's why you're using mine, dude. :-)" 3056 3155 fi 3057 3156 fi … … 3082 3181 [ "$YOUR_KERNEL_SUCKS" ] && [ ! "$FAILSAFE_KVER" ] && Die "Please install mindi-kernel package. You need it. Go to http://www.mondorescue.org and download it, then install it." 3083 3182 3084 rm -f $CACHEDIR/{*img,*gz,*iso} 3085 3086 rm -f $imagesdir/mindi-*.img $imagesdir/[0-9]*.tar.gz $imagesdir/mindi.iso 3087 needlist=$TMP_ROOT/what-we-need.txt 3088 bigdir=$TMP_ROOT/bigdir 3089 minidir_root=$TMP_ROOT/minidir 3090 mkdir -p $minidir_root 3091 mkdir -p $bigdir/usr/bin 3092 tardir=$TMP_ROOT/tardir 3093 3094 lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt $DEPLIST_DIR/* | grep -vx "" | wc -l` 3095 cat $MINDI_CONF/deplist.txt $DEPLIST_DIR/* | GenerateGiantDependencyList $needlist $lines 3096 res=$? 3097 if [ "$YOUR_KERNEL_SUCKS" ]; then 3098 pwd=`pwd` 3099 cd $TMP_ROOT 3100 for i in `ListKernelModulePaths | HackPathsToFailsafe` ; do 3101 cp --parents -pRdf ./$i $bigdir || Die "PDDI can't cp $i->$bigdir" 3102 if [ "`du -sk $i | cut -f1`" -lt "$(($CHOPSIZE*2))" ] ; then 3103 cp --parents -pRdf $i $bigdir 3104 else 3105 ChopUpAndCopyFile $i $bigdir $CHOPSIZE $BIGNO 3106 BIGNO=$(($BIGNO+1)) 3107 fi 3108 done 3109 for i in $EXTRA_MODS ; do 3110 j=`find lib/modules/$FAILSAFE_KVER -name $i.*o 2> /dev/null` 3111 [ ! "$j" ] && echo "Warning - cannot find failsafe module $i.o" >> $LOGFILE 3112 for k in $j ; do 3113 if [ "`du -sk $k | cut -f1`" -lt "$CHOPSIZE" ] ; then 3114 cp --parents -pRdf $k $bigdir 3115 else 3116 ChopUpAndCopyFile $k $bigdir $CHOPSIZE $BIGNO 3117 BIGNO=$(($BIGNO+1)) 3118 fi 3119 echo "Added failsafe module $k to ramdisk" >> $LOGFILE 3120 done 3121 done 3122 cd $pwd 3123 else 3124 ListKernelModulePaths >> $needlist 3125 fi 3126 if [ "$res" -ne "0" ] ; then 3127 Die "You have $res file`PluralOrNot $res` present in dependency list\nbut absent from filesystem." 3128 fi 3129 FindAndAddUserKeyboardMappingFile 3130 mkdir -p $bigdir/tmp 3131 if [ "`DidMondoCallMe`" ] ; then 3132 MakeMondoConfigFile $TMP_ROOT/mondo-restore.cfg 3133 cp -f $TMP_ROOT/mondo-restore.cfg $bigdir/tmp &> /dev/null 3134 cp -f $TMP_ROOT/mondo-restore.cfg $CACHEDIR &> /dev/null 3135 fi 3136 [ -d "/mnt/.boot.d" ] && echo "Oh Jebus" > $bigdir/tmp/DUMBASS-GENTOO 3137 DropOptimizedLibraries $needlist $bigdir 3138 echo -en "Assembling dependency files" 3139 CopyDependenciesToDirectory < $needlist $bigdir 3140 3141 # also copy io.sys and msdos.sys, if we can find them 3142 for i in `mount | cut -d' ' -f3` ; do 3143 for j in io.sys msdos.sys ; do 3144 [ -e "$i/$j" ] && cp -f $i/$j $bigdir 3145 done 3146 done 3147 3148 # master boot record, too 3149 i=`cat $MONDO_TMP/BOOTLOADER.DEVICE 2> /dev/null` 3150 if [ "$i" ] ; then 3151 LogIt "Backing up $i's MBR\n" 3152 dd if=$i of=$bigdir/BOOTLOADER.MBR bs=446 count=1 >> $LOGFILE 2>> $LOGFILE 3153 # < < E O F 3154 sleep 1 3155 sync 3156 # [ "$?" -ne "0" ] && echo "Failed to save $i's MBR to bigdir" >> $LOGFILE 3157 j=$i 3158 [ -h "$j" ] && j=`ResolveSoftlink $j` 3159 LogIt "Creating /dev/boot_device ($j)\n" 3160 mkdir -p $bigdir/dev 3161 cp -pRdf $j $bigdir/dev/boot_device || Die "Unable to create /dev/boot_device on ramdisk" 3162 fi 3163 3164 # more stuff 3165 # cp -f $MINDI_LIB/embleer* $bigdir 3166 old_pwd=`pwd` 3167 cd $bigdir 3168 3169 [ -e "$MINDI_LIB/aux-tools" ] || Die "aux-tools not found in Mindi's home dir. Do you have multiple copies of Mindi lying around? Please delete them. No, don't e-mail me and ask how. ;) Use 'rm'." 3170 cp -Rdf $MINDI_LIB/aux-tools/* . 2>> $LOGFILE || LogIt "Warning - error occurred while unzipping aux-tools\n" 3171 if [ -e "$MINDI_LIB/x11-tools.tgz" ] ; then 3172 tar -zxf $MINDI_LIB/x11-tools.tgz 2>> $LOGFILE || LogIt "Warning - error occurred while unzipping x11-tools.tgz\n" 3173 fi 3174 if [ -e "$MONDO_SHARE/restore-scripts" ] ; then 3175 cp -Rdf $MONDO_SHARE/restore-scripts/* . 2>> $LOGFILE 3176 [ "$?" -ne "0" ] && [ "`DidMondoCallMe`" ] && Die "Cannot find/install $MONDO_SHARE/restore-scripts" 3177 fi 3178 [ -d "/lib/dev-state" ] && cp --parents -pRdf /lib/dev-state . 3179 cd $old_pwd 3180 echo -e "$DONE" 3181 TOTAL_BIGDIR_SIZE=`du -sk $bigdir | cut -f1` 3182 SplitDirectoryIntoMinidirs $bigdir $minidir_root 3183 rm -f /root/images/mindi/{*img,*gz,*iso} 3184 3185 PrepareDataDiskImages $imagesdir 3183 3186 noof_disks=$? 3184 [ "$noof_disks" -eq "0" ] && Die "Too much stuff!"3185 MakeMountlist $TMP_ROOT/mountlist.txt3186 mkdir -p $minidir_root/$noof_disks/tmp3187 cp -f $TMP_ROOT/mountlist.txt $minidir_root/$noof_disks/tmp/mountlist.txt || Die "Cannot copy mountlist.txt from $TMP_ROOT to data disk"3188 cp -f $TMP_ROOT/mountlist.txt $CACHEDIR3189 [ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MONDO_TMP/.3190 [ -d "/proc/lvm" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm3191 [ -d "/dev/mapper" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm3192 cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE3193 ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks3194 CreateDataDiskImagesFromTarballs $tardir $imagesdir $noof_disks3195 FRIENDLY_OUTSTRING="Boot and data disk images were created."3196 # One 1.72MB boot disk, one 2.88MB boot disk and $noof_disks data disk images3197 rmdir $tardir $bigdir3198 rm -f $needlist3199 #return $noof_disks3200 3201 3187 ramdisk_size=$(($size_of_all_tools+$EXTRA_SPACE)) 3202 3188 rds=$(($ramdisk_size-$((ramdisk_size%4096)))) … … 3209 3195 else 3210 3196 if ! PrepareBootDiskImage_LILO $imagesdir 1722 $kernelpath $ramdisk_size ; then 3211 LogIt "Warning - failed to create 1.72MB boot image. Please reduce your kernel's size\n" 3212 LogIt "if you want to make a 1.72MB floppy disk.\n" 3213 fi 3214 if ! PrepareBootDiskImage_LILO $imagesdir 2880 $kernelpath $ramdisk_size ; then 3215 LogIt "Warning - failed to create 2.88MB floppy disk image.\n" 3216 LogIt "Please reduce your kernel's size\n" 3217 LogIt "if you want to make a 2.88MB floppy disk.\n" 3218 PrepareBootDiskImage_LILO $imagesdir 5760 $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image." 3219 fi 3197 LogIt "Warning - failed to create 1.72MB boot image. Please reduce your kernel's size\n" 3198 LogIt "if you want to make a 1.72MB floppy disk.\n" 3199 fi 3200 PrepareBootDiskImage_LILO $imagesdir 2880 $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image." 3220 3201 fi 3221 3202 else … … 3243 3224 [ ! -e "$boot_dev" ] && mknod $boot_dev b 2 60 3244 3225 [ ! -e "$boot_dev" ] && boot_dev=/dev/fd0H1722 3245 [ ! -e "$boot_dev" ] && Die " Will you PLEASE tell your distribution maker to create the 1.72MB devices in /dev?"3226 [ ! -e "$boot_dev" ] && Die "Oh Lord, will you PLEASE tell the vendor to create the 1.72MB devices in /dev?" 3246 3227 if [ "$PROMPT_WRITE_BOOT_FLOPPIES" = "yes" ]; then 3247 echo -en "Would you like to create boot+data floppy disks now (y/n) ?" 3248 read i 3249 [ "$i" != "y" ] && [ "$i" != "Y" ] && return 3250 mount | fgrep /dev/fd > /dev/null && Die "Please unmount your floppies first." 3251 echo "WARNING! THIS WILL ERASE YOUR FLOPPY DISKS." 3252 [ ! -e "$boot_dev" ] && Die "Cannot find $boot_dev - is your Linux distro broken?" 3253 [ ! -e "$FDDEVICE" ] && Die "Cannot find $FDDEVICE - is your Linux distro broken?" 3254 i=`find $imagesdir -type f | fgrep "/mindi-root.1" 2> /dev/null` 3255 j=`find $imagesdir -type f | fgrep "/mindi-boot" | egrep -v '2880|5760'` 3256 if [ "$i" ] ; then 3257 CopyImageToDisk $j $FDDEVICE "boot disk" 3258 CopyImageToDisk $i $FDDEVICE "root disk" 3259 else 3260 CopyImageToDisk $j $boot_dev "boot/root disk" 3261 fi 3262 count=1 3263 for i in `find $imagesdir | fgrep mindi-data` ; do 3264 CopyImageToDisk $i $FDDEVICE "data disk #$count" 3265 count=$(($count+1)) 3266 done 3228 OfferToCopyImagesToDisks $imagesdir $boot_dev $FDDEVICE 3267 3229 fi 3268 3230 OfferToMakeBootableISO $imagesdir 3269 3231 LogIt "Finished.\n" 3270 3232 elif [ "$TAPEDEV" ] ; then 3271 rm -f $CACHEDIR/{*img,*gz,*iso} 3233 mkdir -p /root/images/mindi 3234 rm -f /root/images/mindi/{*img,*gz,*iso} 3272 3235 OfferToMakeBootableISO $imagesdir 3273 3236 if [ -e "$imagesdir/all.tar.gz" ] ; then … … 3278 3241 else 3279 3242 OfferToMakeBootableISO $imagesdir 3243 fi 3244 if [ "$imagesdir" != "/root/images/mindi" ] ; then 3245 for i in `find $imagesdir -maxdepth 1 -name "*.iso" -o -name "*.img"` ; do 3246 cp -f $i /root/images/mindi || LogIt "[line 3260] Cannot copy $i to /root/images/mindi\n" 3247 done 3280 3248 fi 3281 3249 [ "$TMP_ROOT" != "/tmp" ] && rm -Rf $TMP_ROOT -
branches/stable/mondo/ChangeLog
r497 r541 3 3 MONDO CHANGES 4 4 5 v2.2.0 (2006-05-01) 6 7 - Internationalization (A huge thank to rene-marc dolhen 8 <rmd_at_mecreant.org> who achieved that big task) 9 - Fixed verify for NFS (Andree Leidenfrost) 10 - Fix for Bug #6975 (Bruno Cornec) 11 - Fix a bug when restoring interactively and having file names with blank 12 (Bruno Cornec) 13 - Fix options -I and -E of mondoarchive which were not working 14 (Bruno Cornec) 15 - Removed 'ax' options from ps call in busybox (Andree Leidenfrost) 16 17 v2.0.7 (2006-02-23) 5 v2.07 (2006-02-23) 18 6 - useless cat, sort|uniq commands removed 19 7 (Bruno Cornec/Sébastien Aperghis-Tramoni) -
branches/stable/mondo/Makefile.am
r534 r541 1 1 AUTOMAKE_OPTIONS = 1.7 2 SUBDIRS = m 4 mondo po2 SUBDIRS = mondo 3 3 man8_MANS = docs/man/mondoarchive.8 docs/man/mondorestore.8 4 5 ACLOCAL_AMFLAGS = -I m46 7 EXTRA_DIST = config.rpath mkinstalldirs -
branches/stable/mondo/bootstrap
r502 r541 28 28 make maintainer-clean >/dev/null 2>&1 29 29 libtoolize -f -c --automake 30 cp /usr/bin/gettextize . 31 perl -pi -e 's~read dummy < /dev/tty~~' gettextize 32 ./gettextize -c -f --no-changelog < /dev/null 33 rm -f gettextize 34 aclocal -I m4 30 aclocal 35 31 autoheader 36 32 automake -
branches/stable/mondo/configure.in
r533 r541 30 30 AC_PROG_MAKE_SET 31 31 32 AM_GNU_GETTEXT([external])33 ALL_LINGUAS="fr"34 32 35 33 dnl --with/--enable stuff … … 74 72 AC_CHECK_LIB(pthread, pthread_create, true, [echo "*** Cannot find -lpthread."; echo "*** Please make sure you have the linuxthreads glibc add-on installed."; exit 1]) 75 73 PTHREAD="-lpthread" 76 CFLAGS="$CFLAGS - Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT"74 CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT" 77 75 ;; 78 76 *) … … 123 121 AC_CHECK_FUNCS([bzero getcwd memmove memset mkdir mkfifo setenv strcasecmp strchr strerror strrchr strstr]) 124 122 125 AC_OUTPUT([Makefile mondo/Makefile mondo/common/Makefile mondo/mondoarchive/Makefile mondo/mondorestore/Makefile mondo/restore-scripts/Makefile mondo/restore-scripts/mondo/Makefile mondo/restore-scripts/usr/Makefile mondo/restore-scripts/usr/bin/Makefile mondo/post-nuke.sample/Makefile mondo/post-nuke.sample/usr/Makefile mondo/post-nuke.sample/usr/bin/Makefile po/Makefile.in m4/Makefile])123 AC_OUTPUT([Makefile mondo/Makefile mondo/common/Makefile mondo/mondoarchive/Makefile mondo/mondorestore/Makefile mondo/restore-scripts/Makefile mondo/restore-scripts/mondo/Makefile mondo/restore-scripts/usr/Makefile mondo/restore-scripts/usr/bin/Makefile mondo/post-nuke.sample/Makefile mondo/post-nuke.sample/usr/Makefile mondo/post-nuke.sample/usr/bin/Makefile]) -
branches/stable/mondo/distributions/gentoo/mondo.ebuild
r530 r541 7 7 DESCRIPTION="The premier GPL disaster recovery solution." 8 8 HOMEPAGE="http://www.mondorescue.org" 9 SRC_URI="ftp://ftp. mondorecue.org/src/${PN/-rescue/}-${PV}.tgz"9 SRC_URI="ftp://ftp.berlios.de/pub/mondorescue/src/${PN/-rescue/}-${PV}.tgz" 10 10 11 11 LICENSE="GPL-2" … … 22 22 >=app-arch/bzip2-0.9 23 23 app-cdr/cdrtools 24 >=sys-apps/mindi-1.0 .724 >=sys-apps/mindi-1.06 25 25 >=dev-libs/newt-0.50 26 26 >=sys-libs/slang-1.4.1 -
branches/stable/mondo/distributions/mandriva/spec.m4
r470 r541 7 7 dnl GRP is replaced by the RPM group of apps 8 8 define(`GRP', `Archiving/Backup')dnl 9 dnl OBS is replaced vy what is being obsoleted10 define(`OBS', `Obsoletes: libmondo <= 2.0411 Provides: libmondo')dnl -
branches/stable/mondo/distributions/redhat/spec.m4
r529 r541 2 2 dnl 3 3 dnl SSS is replaced by the source package format 4 define(`SSS', ftp://ftp.mondorescue.org/src/%{name}-%{version}.tgz)dnl4 define(`SSS', %{name}-%{version}.tgz)dnl 5 5 dnl DDD is replaced by the list of dependencies specific to that distro 6 6 define(`DDD', %{addreqb})dnl 7 7 dnl GRP is replaced by the RPM group of apps 8 define(`GRP', Applications/Archiving)dnl 9 dnl OBS is replaced vy what is being obsoleted 10 define(`OBS', )dnl 8 define(`GRP', Archiving/Archiving)dnl -
branches/stable/mondo/distributions/rpm/mondo.spec
r529 r541 10 10 %define src SSS 11 11 %define grp GRP 12 %define addreqb mindi >= 1.0 .7, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.112 %define addreqb mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, newt >= 0.50, slang >= 1.4.1 13 13 %define addreq DDD 14 14 %define rel %{mrel} 15 15 16 16 Summary: A program which a Linux user can utilize to create a rescue/restore CD/tape 17 Summary(fr): Un programme pour les utilisateurs de Linux pour cr éer un CD/tape de sauvegarde/restauration17 Summary(fr): Un programme pour les utilisateurs de Linux pour cr�r un CD/tape de sauvegarde/restauration 18 18 Summary(it): Un programma per utenti Linux per creare un CD/tape di rescue 19 19 Summary(sp): Un programa para los usuarios de Linux por crear una CD/cinta de restoracion/rescate … … 24 24 License: GPL 25 25 Group: %{grp} 26 Url: http:// www.mondorescue.org26 Url: http://mondorescue.berlios.de 27 27 Source: %{src} 28 BuildRoot: %{_tmppath}/%{name}-%{version} -%{release}-root-%(id -u -n)28 BuildRoot: %{_tmppath}/%{name}-%{version} 29 29 BuildRequires: newt-devel >= 0.50, slang-devel >= 1.4.1, gcc 30 Epoch: %(echo EEE | cut -d- -f1 | sed "s~M~~")31 OBS32 30 %ifarch ia64 33 31 Requires: %{addreq}, elilo, parted … … 68 66 69 67 %build 70 %configure --program-prefix=%{?_program_prefix}68 %configure 71 69 %{__make} VERSION=%{version} 72 70 … … 88 86 %attr(755,root,root) %{_datadir}/%{name}/autorun 89 87 %attr(755,root,root) %{_datadir}/%{name}/post-nuke.sample/usr/bin/post-nuke 90 %{_datadir}/locale/*/LC_MESSAGES/mondo.mo91 88 %{_datadir}/%{name}/* 92 89 %{_mandir}/man8/* -
branches/stable/mondo/distributions/suse/spec.m4
r460 r541 7 7 dnl GRP is replaced by the RPM group of apps 8 8 define(`GRP', Productivity/Archiving/Backup)dnl 9 dnl OBS is replaced vy what is being obsoleted10 define(`OBS', )dnl -
branches/stable/mondo/mondo/common/Makefile.am
r538 r541 9 9 libmondo_a_SOURCES = libmondo-archive.c libmondo-devices.c libmondo-fifo.c \ 10 10 libmondo-filelist.c libmondo-files.c libmondo-fork.c \ 11 libmondo-mountlist.c libmondo-raid.c libmondo-msg.c\11 libmondo-mountlist.c libmondo-raid.c \ 12 12 libmondo-stream.c libmondo-string.c libmondo-tools.c \ 13 13 libmondo-verify.c newt-specific.c \ 14 14 libmondo-archive.h libmondo-devices.h \ 15 15 libmondo-filelist.h libmondo-files.h libmondo-fork.h \ 16 libmondo- mountlist.h libmondo-raid.h \16 libmondo-gui.h libmondo-mountlist.h libmondo-raid.h \ 17 17 libmondo-stream.h libmondo-string.h libmondo-tools.h \ 18 18 libmondo-verify.h libmondo-fifo.h \ … … 20 20 libmondo-devices-EXT.h libmondo-fifo-EXT.h \ 21 21 libmondo-files-EXT.h libmondo-fork-EXT.h \ 22 libmondo- filelist-EXT.h \22 libmondo-gui-EXT.h libmondo-filelist-EXT.h \ 23 23 libmondo-mountlist-EXT.h libmondo-raid-EXT.h \ 24 24 libmondo-string-EXT.h libmondo-tools-EXT.h \ -
branches/stable/mondo/mondo/common/libmondo-archive-EXT.h
r538 r541 15 15 extern int make_slices_and_images(struct s_bkpinfo *bkpinfo, 16 16 char *biggielist_fname); 17 extern int make_iso_fs(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,char *destfile);17 extern int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile); 18 18 extern int make_afioballs_and_images(struct s_bkpinfo *bkpinfo); 19 19 extern int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...); … … 41 41 char *filelist, char *fname, 42 42 int setno); 43 extern void setenv_mondo_ share(void);43 extern void setenv_mondo_lib(void); -
branches/stable/mondo/mondo/common/libmondo-archive.c
r538 r541 179 179 #include "libmondo-devices-EXT.h" 180 180 #include "libmondo-tools-EXT.h" 181 #include " newt-specific-EXT.h"181 #include "libmondo-gui-EXT.h" 182 182 #include "libmondo-fork-EXT.h" 183 183 #include "libmondo-files-EXT.h" … … 186 186 #include "libmondo-verify-EXT.h" 187 187 #include "libmondo-archive.h" 188 #include "lib-common-externs.h" 188 189 #include <sys/sem.h> 189 190 #include <sys/types.h> … … 580 581 * @ingroup archiveGroup 581 582 */ 582 int backup_data(struct s_bkpinfo *bkpinfo , struct s_mrconf *mrconf)583 int backup_data(struct s_bkpinfo *bkpinfo) 583 584 { 584 585 int retval = 0, res = 0; … … 643 644 sprintf(tmp, "rm -f %s/images/*.iso", bkpinfo->scratchdir); 644 645 run_program_and_log_output(tmp, 1); 645 retval += make_those_afios_phase(bkpinfo ,mrconf); // backup regular files646 retval += make_those_afios_phase(bkpinfo); // backup regular files 646 647 retval += make_those_slices_phase(bkpinfo); // backup BIG files 647 648 retval += do_that_final_phase(bkpinfo); // clean up … … 1014 1015 if (!res) { 1015 1016 log_to_screen("Boot+data disks were created OK"); 1016 sprintf(command, "mkdir -p / var/cache/mindi/");1017 sprintf(command, "mkdir -p /root/images/mindi/"); 1017 1018 log_msg(2, command); 1018 1019 run_program_and_log_output(command, FALSE); 1019 1020 sprintf(command, 1020 "cp -f %s/images/mindi.iso / var/cache/mindi/mondorescue.iso",1021 "cp -f %s/images/mindi.iso /root/images/mindi/mondorescue.iso", 1021 1022 bkpinfo->scratchdir); 1022 1023 log_msg(2, command); … … 1252 1253 * @ingroup MLarchiveGroup 1253 1254 */ 1254 int do_that_final_phase(struct s_bkpinfo *bkpinfo , struct s_mrconf *mrconf)1255 int do_that_final_phase(struct s_bkpinfo *bkpinfo) 1255 1256 { 1256 1257 … … 1273 1274 /* write final ISO */ 1274 1275 { 1275 res = write_final_iso_if_necessary(bkpinfo , mrconf);1276 res = write_final_iso_if_necessary(bkpinfo); 1276 1277 retval += res; 1277 1278 if (res) { … … 1563 1564 * @return The number of errors encountered (0 for success) 1564 1565 */ 1565 int make_afioballs_and_images(struct s_bkpinfo *bkpinfo , struct s_mrconf *mrconf)1566 int make_afioballs_and_images(struct s_bkpinfo *bkpinfo) 1566 1567 { 1567 1568 … … 1619 1620 log_to_screen("Archiving regular files"); 1620 1621 log_msg(5, "Go, Shorty. It's your birthday."); 1621 open_progress_form( _("Backing up filesystem"),1622 _("I am backing up your live filesystem now."),1623 _("Please wait. This may take a couple of hours."),1624 _("Working..."),1622 open_progress_form("Backing up filesystem", 1623 "I am backing up your live filesystem now.", 1624 "Please wait. This may take a couple of hours.", 1625 "Working...", 1625 1626 get_last_filelist_number(bkpinfo) + 1); 1626 1627 … … 1707 1708 } else { 1708 1709 res = 1709 move_files_to_cd(bkpinfo, mrconf,storing_filelist_fname,1710 move_files_to_cd(bkpinfo, storing_filelist_fname, 1710 1711 curr_xattr_list_fname, 1711 1712 curr_acl_list_fname, … … 1785 1786 * @return The number of errors encountered (0 for success) 1786 1787 */ 1787 int make_iso_fs(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,char *destfile)1788 int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile) 1788 1789 { 1789 1790 /*@ int ********************************************** */ … … 1848 1849 tmp3 = NULL; 1849 1850 if (bkpinfo->backup_media_type == iso && bkpinfo->manual_cd_tray) { 1850 popup_and_OK( _("Please insert new media and press Enter."));1851 popup_and_OK("Please insert new media and press Enter."); 1851 1852 } 1852 1853 … … 2005 2006 #ifdef __IA64__ 2006 2007 log_msg(1, "IA64 --> elilo"); 2007 asprintf(&tmp2,"mkisofs -no-emul-boot -b images/mindi-bootroot.%s.img -c boot.cat -o _ISO_ -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .", mrconf->ia64_boot_size);2008 2008 res = eval_call_to_make_ISO(bkpinfo, 2009 2009 //-b images/mindi-boot.2880.img 2010 tmp2, 2010 "mkisofs -no-emul-boot -b images/mindi-bootroot." 2011 IA64_BOOT_SIZE 2012 ".img -c boot.cat -o _ISO_ -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ .", 2011 2013 destfile, 2012 2014 g_current_media_number, … … 2016 2018 // FIXME --- change mkisofs string to MONDO_MKISOFS_REGULAR_SYSLINUX/LILO depending on bkpinfo->make_cd_usE_lilo 2017 2019 // and add ' .' at end 2018 paranoid_free(tmp2);2019 2020 log_msg(1, "Non-ia64 --> lilo"); 2020 2021 res = … … 2150 2151 */ 2151 2152 int 2152 make_slices_and_images(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,char *biggielist_fname)2153 make_slices_and_images(struct s_bkpinfo *bkpinfo, char *biggielist_fname) 2153 2154 { 2154 2155 … … 2223 2224 } else { 2224 2225 // Call ntfsclone (formerly partimagehack) if it's a /dev entry (i.e. a partition to be imaged) 2225 log_msg(2, "bigfile_fname = '%s'", bigfile_fname);2226 log_msg(2, "bigfile_fname = %s", bigfile_fname); 2226 2227 use_ntfsprog = FALSE; 2227 2228 if (!strncmp(bigfile_fname, "/dev/", 5) … … 2269 2270 } 2270 2271 res = 2271 slice_up_file_etc(bkpinfo, mrconf,bigfile_fname,2272 slice_up_file_etc(bkpinfo, bigfile_fname, 2272 2273 ntfsprog_fifo, biggie_file_number, 2273 2274 noof_biggie_files, use_ntfsprog); … … 2321 2322 * @see make_afioballs_and_images 2322 2323 */ 2323 int make_afioballs_and_images_OLD(struct s_bkpinfo *bkpinfo , struct s_mrconf *mrconf)2324 int make_afioballs_and_images_OLD(struct s_bkpinfo *bkpinfo) 2324 2325 { 2325 2326 … … 2349 2350 log_to_screen("Archiving regular files"); 2350 2351 2351 open_progress_form( _("Backing up filesystem"),2352 _("I am backing up your live filesystem now."),2353 _("Please wait. This may take a couple of hours."),2354 _("Working..."),2352 open_progress_form("Backing up filesystem", 2353 "I am backing up your live filesystem now.", 2354 "Please wait. This may take a couple of hours.", 2355 "Working...", 2355 2356 get_last_filelist_number(bkpinfo) + 1); 2356 2357 … … 2403 2404 } else { 2404 2405 res = 2405 move_files_to_cd(bkpinfo, mrconf,curr_filelist_fname,2406 move_files_to_cd(bkpinfo, curr_filelist_fname, 2406 2407 curr_xattr_list_fname, 2407 2408 curr_acl_list_fname, curr_afioball_fname, … … 2448 2449 * @ingroup MLarchiveGroup 2449 2450 */ 2450 int make_those_afios_phase(struct s_bkpinfo *bkpinfo , struct s_mrconf *mrconf)2451 int make_those_afios_phase(struct s_bkpinfo *bkpinfo) 2451 2452 { 2452 2453 /*@ int ******************************************* */ … … 2465 2466 log_msg(1, 2466 2467 "Using single-threaded make_afioballs_and_images() to suit b0rken FreeBSD 5.0"); 2467 res = make_afioballs_and_images_OLD(bkpinfo , mrconf);2468 res = make_afioballs_and_images_OLD(bkpinfo); 2468 2469 #else 2469 res = make_afioballs_and_images_OLD(bkpinfo , mrconf);2470 res = make_afioballs_and_images_OLD(bkpinfo); 2470 2471 #endif 2471 2472 write_header_block_to_stream(0, "stop-afioballs", 2472 2473 BLK_STOP_AFIOBALLS); 2473 2474 } else { 2474 res = make_afioballs_and_images(bkpinfo , mrconf);2475 res = make_afioballs_and_images(bkpinfo); 2475 2476 } 2476 2477 … … 2575 2576 * transfer files over the network) or leave it as is. 2576 2577 */ 2577 int (*move_files_to_cd) (struct s_bkpinfo *, struct s_mrconf *mrconf,char *, ...) =2578 int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...) = 2578 2579 _move_files_to_cd; 2579 2580 … … 2596 2597 * @return The number of errors encountered (0 for success) 2597 2598 */ 2598 int _move_files_to_cd(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,char *files_to_add, ...)2599 int _move_files_to_cd(struct s_bkpinfo *bkpinfo, char *files_to_add, ...) 2599 2600 { 2600 2601 … … 2635 2636 } 2636 2637 if (would_occupy / 1024 > bkpinfo->media_size[g_current_media_number]) { 2637 res = write_iso_and_go_on(bkpinfo, struct s_mrconf *mrconf,FALSE); /* FALSE because this is not the last CD we'll write */2638 res = write_iso_and_go_on(bkpinfo, FALSE); /* FALSE because this is not the last CD we'll write */ 2638 2639 retval += res; 2639 2640 if (res) { … … 2685 2686 * @c backup_media_type field is used in this function. 2686 2687 * @param imagesdir The directory containing the floppy images (usually 2687 * / var/cache/mindi).2688 * /root/images/mindi). 2688 2689 * 2689 2690 * @return The number of errors encountered (0 for success) … … 2864 2865 if (!bkpinfo->nonbootable_backup) { 2865 2866 #ifdef __FreeBSD__ 2866 if (!does_file_exist("/ var/cache/mindi/mindi-kern.1722.img"))2867 if (!does_file_exist("/root/images/mindi/mindi-kern.1722.img")) 2867 2868 #else 2868 if (!does_file_exist("/var/cache/mindi/mindi-bootroot.1722.img") 2869 && !does_file_exist("/var/cache/mindi/mindi-boot.1440.img") 2870 && !does_file_exist("/var/cache/mindi/mindi-boot.2880.img") 2871 && !does_file_exist("/var/cache/mindi/mindi-boot.5760.img")) 2869 if (!does_file_exist("/root/images/mindi/mindi-bootroot.1722.img") 2870 && !does_file_exist("/root/images/mindi/mindi-boot.1440.img")) 2872 2871 #endif 2873 2872 { 2874 2873 mvaddstr_and_log_it(g_currentY++, 74, "No Imgs"); 2875 if (does_file_exist("/ var/cache/mindi/mondorescue.iso")) {2874 if (does_file_exist("/root/images/mindi/mondorescue.iso")) { 2876 2875 popup_and_OK 2877 ("Boot+data floppy creation failed. However, FYI, you may burn / var/cache/mindi/mondorescue.iso to a CD and boot from that instead if you wish.");2876 ("Boot+data floppy creation failed. However, FYI, you may burn /root/images/mindi/mondorescue.iso to a CD and boot from that instead if you wish."); 2878 2877 res++; 2879 2878 } 2880 2879 } else { 2881 offer_to_write_floppies(bkpinfo, "/ var/cache/mindi");2880 offer_to_write_floppies(bkpinfo, "/root/images/mindi"); 2882 2881 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2883 2882 } … … 3279 3278 */ 3280 3279 int 3281 slice_up_file_etc(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,char *biggie_filename,3280 slice_up_file_etc(struct s_bkpinfo *bkpinfo, char *biggie_filename, 3282 3281 char *ntfsprog_fifo, long biggie_file_number, 3283 3282 long noof_biggie_files, bool use_ntfsprog) … … 3409 3408 } else { 3410 3409 res = 3411 move_files_to_cd(bkpinfo, mrconf,3410 move_files_to_cd(bkpinfo, 3412 3411 slice_fname(biggie_file_number, 0, 3413 3412 bkpinfo->tmpdir, ""), NULL); … … 3511 3510 res = move_files_to_stream(bkpinfo, file_to_archive, NULL); 3512 3511 } else { 3513 res = move_files_to_cd(bkpinfo, mrconf,file_to_archive, NULL);3512 res = move_files_to_cd(bkpinfo, file_to_archive, NULL); 3514 3513 } 3515 3514 retval += res; … … 3603 3602 * however, this occurs rarely. 3604 3603 */ 3605 int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo , struct s_mrconf *mrconf)3604 int write_final_iso_if_necessary(struct s_bkpinfo *bkpinfo) 3606 3605 { 3607 3606 /*@ int ***************************************************** */ … … 3624 3623 } 3625 3624 #endif 3626 res = write_iso_and_go_on(bkpinfo, struct s_mrconf *mrconf,TRUE);3625 res = write_iso_and_go_on(bkpinfo, TRUE); 3627 3626 #ifndef _XWIN 3628 3627 if (!g_text_mode) { … … 3653 3652 * @see make_iso_fs 3654 3653 */ 3655 int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,bool last_cd)3654 int write_iso_and_go_on(struct s_bkpinfo *bkpinfo, bool last_cd) 3656 3655 { 3657 3656 /*@ pointers **************************************************** */ … … 3729 3728 g_current_media_number); 3730 3729 for (that_one_was_ok = FALSE; !that_one_was_ok;) { 3731 res = make_iso_fs(bkpinfo, mrconf,isofile);3730 res = make_iso_fs(bkpinfo, isofile); 3732 3731 if (g_current_media_number == 1 && !res 3733 3732 && (bkpinfo->backup_media_type == cdr … … 4031 4030 setenv("MONDO_SHARE", MONDO_SHARE, 1); 4032 4031 } 4033 4034 void mrarchive_init_conf(struct s_mrconf *mrconf) {4035 char *command = NULL;4036 FILE *conffd = NULL;4037 FILE *fin = NULL;4038 int n = 0;4039 char *param = NULL;4040 4041 mrconf = (struct s_mrconf *)malloc(sizeof(struct s_mrconf));4042 if (mrconf == NULL) {4043 fatal_error("Unable to malloc mrconf");4044 }4045 /* Default for everything int : 0 char * : NULL */4046 4047 /* mindi conf parameters also needed in mondo */4048 mrconf->ia64_boot_size = 0;4049 4050 asprintf(&command, "mindi -printvar IA64_BOOT_SIZE");4051 fin = popen(command, "r");4052 getline(¶m, &n, fin);4053 pclose(fin);4054 paranoid_free(command);4055 mrconf->ia64_boot_size = atoi(param);4056 paranoid_free(param);4057 4058 mrconf->iso_creation_cmd = NULL;4059 4060 /* Finds mondo conf file */4061 mrconf_open(MONDO_CONF_DIR"/mondo.conf");4062 4063 /* mondo conf parameters needed */4064 mrconf->iso_creation_cmd = mrconf_sread(iso_creation_cmd);4065 4066 mrconf_close(); -
branches/stable/mondo/mondo/common/libmondo-archive.h
r538 r541 17 17 int make_slices_and_images(struct s_bkpinfo *bkpinfo, 18 18 char *biggielist_fname); 19 int make_iso_fs(struct s_bkpinfo *bkpinfo, struct s_mrconf *mrconf,char *destfile);19 int make_iso_fs(struct s_bkpinfo *bkpinfo, char *destfile); 20 20 int make_afioballs_and_images(struct s_bkpinfo *bkpinfo); 21 21 extern int (*move_files_to_cd) (struct s_bkpinfo *, char *, ...); … … 42 42 int archive_this_fileset_with_star(struct s_bkpinfo *bkpinfo, 43 43 char *filelist, char *fname, int setno); 44 void setenv_mondo_ share(void);44 void setenv_mondo_lib(void); -
branches/stable/mondo/mondo/common/libmondo-devices.c
r501 r541 232 232 #include "libmondo-files-EXT.h" 233 233 #include "libmondo-devices.h" 234 #include "lib-common-externs.h" 234 235 #include "libmondo-string-EXT.h" 235 236 #include "libmondo-tools-EXT.h" 236 #include " newt-specific-EXT.h"237 #include "libmondo-gui-EXT.h" 237 238 #include "libmondo-fork-EXT.h" 238 239 #include "libmondo-stream-EXT.h" … … 351 352 && !does_file_exist("/tmp/mountlist.txt.sample")) { 352 353 log_to_screen 353 ( _("Using /dev/root is stupid of you but I'll forgive you."));354 ("Using /dev/root is stupid of you but I'll forgive you."); 354 355 is_this_a_ramdisk = FALSE; 355 356 } … … 379 380 switch (bt) { 380 381 case none: 381 strcpy(output, _("none"));382 strcpy(output, "none"); 382 383 break; 383 384 case iso: 384 strcpy(output, _("iso"));385 strcpy(output, "iso"); 385 386 break; 386 387 case cdr: 387 strcpy(output, _("cdr"));388 strcpy(output, "cdr"); 388 389 break; 389 390 case cdrw: 390 strcpy(output, _("cdrw"));391 strcpy(output, "cdrw"); 391 392 break; 392 393 case cdstream: 393 strcpy(output, _("cdstream"));394 strcpy(output, "cdstream"); 394 395 break; 395 396 case nfs: 396 strcpy(output, _("nfs"));397 strcpy(output, "nfs"); 397 398 break; 398 399 case tape: 399 strcpy(output, _("tape"));400 strcpy(output, "tape"); 400 401 break; 401 402 case udev: 402 strcpy(output, _("udev"));403 strcpy(output, "udev"); 403 404 break; 404 405 default: 405 strcpy(output, _("default"));406 strcpy(output, "default"); 406 407 } 407 408 return (output); … … 694 695 if (!dev[0] || (res = mount_CDROM_here(dev, mountpoint))) { 695 696 if (!popup_and_get_string 696 ( _("CD-ROM device"), _("Please enter your CD-ROM's /dev device"),697 ("CD-ROM device", "Please enter your CD-ROM's /dev device", 697 698 dev, MAX_STR_LEN / 4)) { 698 699 res = 1; … … 702 703 } 703 704 if (res) { 704 log_msg(1, _("mount failed"));705 log_msg(1, "mount failed"); 705 706 } else { 706 log_msg(1, _("mount succeeded with %s"), dev);707 log_msg(1, "mount succeeded with %s", dev); 707 708 } 708 709 paranoid_free(dev); … … 1771 1772 } 1772 1773 if (res) { 1773 log_to_screen( _("WARNING - failed to unmount CD-ROM drive"));1774 log_to_screen("WARNING - failed to unmount CD-ROM drive"); 1774 1775 } 1775 1776 if (!bkpinfo->please_dont_eject) { … … 1779 1780 } 1780 1781 if (res) { 1781 log_to_screen( _("WARNING - failed to eject CD-ROM disk"));1782 log_to_screen("WARNING - failed to eject CD-ROM disk"); 1782 1783 } 1783 1784 popup_and_OK(request); … … 1840 1841 which_backup_media_type(bkpinfo->restore_data); 1841 1842 if (bkpinfo->backup_media_type == none) { 1842 log_to_screen( _("User has chosen not to backup the PC"));1843 log_to_screen("User has chosen not to backup the PC"); 1843 1844 finish(1); 1844 1845 } 1845 1846 if (bkpinfo->backup_media_type == tape && bkpinfo->restore_data) { 1846 popup_and_OK( _("Please remove CD/floppy from drive(s)"));1847 popup_and_OK("Please remove CD/floppy from drive(s)"); 1847 1848 } 1848 1849 log_msg(3, "media type = %s", … … 1879 1880 if (archiving_to_media) { 1880 1881 if (ask_me_yes_or_no 1881 ( _("Is your computer a laptop, or does the CD writer incorporate BurnProof technology?")))1882 ("Is your computer a laptop, or does the CD writer incorporate BurnProof technology?")) 1882 1883 { 1883 1884 bkpinfo->manual_cd_tray = TRUE; … … 1885 1886 if ((bkpinfo->compression_level = 1886 1887 which_compression_level()) == -1) { 1887 log_to_screen( _("User has chosen not to backup the PC"));1888 log_to_screen("User has chosen not to backup the PC"); 1888 1889 finish(1); 1889 1890 } 1890 sprintf(comment, _("What speed is your %s (re)writer?"),1891 sprintf(comment, "What speed is your %s (re)writer?", 1891 1892 media_descriptor_string(bkpinfo->backup_media_type)); 1892 1893 if (bkpinfo->backup_media_type == dvd) { … … 1902 1903 } 1903 1904 if (bkpinfo->backup_media_type != dvd) { 1904 if (!popup_and_get_string( _("Speed"), comment, tmp, 4)) {1905 log_to_screen( _("User has chosen not to backup the PC"));1905 if (!popup_and_get_string("Speed", comment, tmp, 4)) { 1906 log_to_screen("User has chosen not to backup the PC"); 1906 1907 finish(1); 1907 1908 } … … 1909 1910 bkpinfo->cdrw_speed = atoi(tmp); // if DVD then this shouldn't ever be used anyway :) 1910 1911 sprintf(comment, 1911 _("How much data (in Megabytes) will each %s store?"),1912 "How much data (in Megabytes) will each %s store?", 1912 1913 media_descriptor_string(bkpinfo->backup_media_type)); 1913 1914 if (!popup_and_get_string("Size", comment, sz_size, 5)) { 1914 log_to_screen( _("User has chosen not to backup the PC"));1915 log_to_screen("User has chosen not to backup the PC"); 1915 1916 finish(1); 1916 1917 } … … 1919 1920 } 1920 1921 if (bkpinfo->media_size[0] <= 0) { 1921 log_to_screen( _("User has chosen not to backup the PC"));1922 log_to_screen("User has chosen not to backup the PC"); 1922 1923 finish(1); 1923 1924 } … … 1940 1941 bkpinfo->media_device); 1941 1942 sprintf(comment, 1942 _("Please specify your %s drive's /dev entry"),1943 "Please specify your %s drive's /dev entry", 1943 1944 media_descriptor_string(bkpinfo-> 1944 1945 backup_media_type)); 1945 1946 if (!popup_and_get_string 1946 ( _("Device?"), comment, bkpinfo->media_device,1947 ("Device?", comment, bkpinfo->media_device, 1947 1948 MAX_STR_LEN / 4)) { 1948 log_to_screen( _("User has chosen not to backup the PC"));1949 log_to_screen("User has chosen not to backup the PC"); 1949 1950 finish(1); 1950 1951 } … … 1959 1960 if (bkpinfo->media_device[0]) { 1960 1961 sprintf(tmp, 1961 _("I think I've found your %s burner at SCSI node %s; am I right on the money?"),1962 "I think I've found your %s burner at SCSI node %s; am I right on the money?", 1962 1963 media_descriptor_string(bkpinfo-> 1963 1964 backup_media_type), … … 1969 1970 if (!bkpinfo->media_device[0]) { 1970 1971 if (g_kernel_version < 2.6) { 1971 i = popup_and_get_string( _("Device node?"),1972 _("What is the SCSI node of your CD (re)writer, please?"),1972 i = popup_and_get_string("Device node?", 1973 "What is the SCSI node of your CD (re)writer, please?", 1973 1974 bkpinfo->media_device, 1974 1975 MAX_STR_LEN / 4); 1975 1976 } else { 1976 i = popup_and_get_string( _("/dev entry?"),1977 _("What is the /dev entry of your CD (re)writer, please?"),1977 i = popup_and_get_string("/dev entry?", 1978 "What is the /dev entry of your CD (re)writer, please?", 1978 1979 bkpinfo->media_device, 1979 1980 MAX_STR_LEN / 4); 1980 1981 } 1981 1982 if (!i) { 1982 log_to_screen( _("User has chosen not to backup the PC"));1983 log_to_screen("User has chosen not to backup the PC"); 1983 1984 finish(1); 1984 1985 } … … 1993 1994 case udev: 1994 1995 if (!ask_me_yes_or_no 1995 ( _("This option is for advanced users only. Are you sure?"))) {1996 log_to_screen( _("User has chosen not to backup the PC"));1996 ("This option is for advanced users only. Are you sure?")) { 1997 log_to_screen("User has chosen not to backup the PC"); 1997 1998 finish(1); 1998 1999 } … … 2000 2001 2001 2002 if (find_tape_device_and_size(bkpinfo->media_device, sz_size)) { 2002 log_msg(3, _("Ok, using vanilla scsi tape."));2003 log_msg(3, "Ok, using vanilla scsi tape."); 2003 2004 strcpy(bkpinfo->media_device, VANILLA_SCSI_TAPE); 2004 2005 if ((fin = fopen(bkpinfo->media_device, "r"))) { … … 2018 2019 } 2019 2020 sprintf(tmp, 2020 _("I think I've found your tape streamer at %s; am I right on the money?"),2021 "I think I've found your tape streamer at %s; am I right on the money?", 2021 2022 bkpinfo->media_device); 2022 2023 } 2023 2024 if (bkpinfo->media_device[0]) { 2024 2025 sprintf(tmp, 2025 _("I think I've found your tape streamer at %s; am I right on the money?"),2026 "I think I've found your tape streamer at %s; am I right on the money?", 2026 2027 bkpinfo->media_device); 2027 2028 if (!ask_me_yes_or_no(tmp)) { … … 2031 2032 if (!bkpinfo->media_device[0]) { 2032 2033 if (!popup_and_get_string 2033 ( _("Device name?"),2034 _("What is the /dev entry of your tape streamer?"),2034 ("Device name?", 2035 "What is the /dev entry of your tape streamer?", 2035 2036 bkpinfo->media_device, MAX_STR_LEN / 4)) { 2036 log_to_screen( _("User has chosen not to backup the PC"));2037 log_to_screen("User has chosen not to backup the PC"); 2037 2038 finish(1); 2038 2039 } … … 2040 2041 sprintf(tmp, "ls -l %s", bkpinfo->media_device); 2041 2042 if (run_program_and_log_output(tmp, FALSE)) { 2042 log_to_screen( _("User has not specified a valid /dev entry"));2043 log_to_screen("User has not specified a valid /dev entry"); 2043 2044 finish(1); 2044 2045 } … … 2068 2069 if ((bkpinfo->compression_level = 2069 2070 which_compression_level()) == -1) { 2070 log_to_screen( _("User has chosen not to backup the PC"));2071 log_to_screen("User has chosen not to backup the PC"); 2071 2072 finish(1); 2072 2073 } … … 2089 2090 { 2090 2091 if (!popup_and_get_string 2091 ( _("NFS dir."),2092 _("Please enter path and directory where archives are stored remotely. (Mondo has taken a guess at the correct value. If it is incorrect, delete it and type the correct one.)"),2092 ("NFS dir.", 2093 "Please enter path and directory where archives are stored remotely. (Mondo has taken a guess at the correct value. If it is incorrect, delete it and type the correct one.)", 2093 2094 bkpinfo->nfs_mount, MAX_STR_LEN / 4)) { 2094 log_to_screen( _("User has chosen not to backup the PC"));2095 log_to_screen("User has chosen not to backup the PC"); 2095 2096 finish(1); 2096 2097 } … … 2098 2099 if ((bkpinfo->compression_level = 2099 2100 which_compression_level()) == -1) { 2100 log_to_screen( _("User has chosen not to backup the PC"));2101 log_to_screen("User has chosen not to backup the PC"); 2101 2102 finish(1); 2102 2103 } … … 2113 2114 2114 2115 sprintf(comment, 2115 _("How much data (in Megabytes) will each media store?"));2116 if (!popup_and_get_string( _("Size"), comment, sz_size, 5)) {2117 log_to_screen( _("User has chosen not to backup the PC"));2116 "How much data (in Megabytes) will each media store?"); 2117 if (!popup_and_get_string("Size", comment, sz_size, 5)) { 2118 log_to_screen("User has chosen not to backup the PC"); 2118 2119 finish(1); 2119 2120 } … … 2122 2123 } 2123 2124 if (bkpinfo->media_size[0] <= 0) { 2124 log_to_screen( _("User has chosen not to backup the PC"));2125 log_to_screen("User has chosen not to backup the PC"); 2125 2126 finish(1); 2126 2127 } … … 2129 2130 system("umount /tmp/isodir 2> /dev/null"); 2130 2131 if (!popup_and_get_string 2131 ( _("NFS share"), _("Which remote NFS share should I mount?"),2132 ("NFS share", "Which remote NFS share should I mount?", 2132 2133 bkpinfo->nfs_mount, MAX_STR_LEN)) { 2133 log_to_screen( _("User has chosen not to backup the PC"));2134 log_to_screen("User has chosen not to backup the PC"); 2134 2135 finish(1); 2135 2136 } … … 2148 2149 if (!is_this_device_mounted(bkpinfo->nfs_mount)) { 2149 2150 popup_and_OK 2150 ( _("Please mount that partition before you try to backup to or restore from it."));2151 ("Please mount that partition before you try to backup to or restore from it."); 2151 2152 finish(1); 2152 2153 } 2153 2154 strcpy(tmp, bkpinfo->nfs_remote_dir); 2154 2155 if (!popup_and_get_string 2155 ( _("Directory"), _("Which directory within that mountpoint?"), tmp,2156 ("Directory", "Which directory within that mountpoint?", tmp, 2156 2157 MAX_STR_LEN)) { 2157 log_to_screen( _("User has chosen not to backup the PC"));2158 log_to_screen("User has chosen not to backup the PC"); 2158 2159 finish(1); 2159 2160 } … … 2166 2167 strcpy(tmp, bkpinfo->nfs_remote_dir); 2167 2168 sprintf(prompt, 2168 _("Directory '%s' under mountpoint '%s' does not exist or is not writable. You can fix this or change the directory and retry or cancel the backup."),2169 "Directory '%s' under mountpoint '%s' does not exist or is not writable. You can fix this or change the directory and retry or cancel the backup.", 2169 2170 bkpinfo->nfs_remote_dir, bkpinfo->isodir); 2170 2171 if (!popup_and_get_string 2171 ( _("Directory"), prompt, tmp, MAX_STR_LEN)) {2172 log_to_screen( _("User has chosen not to backup the PC"));2172 ("Directory", prompt, tmp, MAX_STR_LEN)) { 2173 log_to_screen("User has chosen not to backup the PC"); 2173 2174 finish(1); 2174 2175 } … … 2180 2181 } 2181 2182 if (!popup_and_get_string 2182 ( _("Prefix."),2183 _("Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files"),2183 ("Prefix.", 2184 "Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files", 2184 2185 bkpinfo->prefix, MAX_STR_LEN / 4)) { 2185 log_to_screen( _("User has chosen not to backup the PC"));2186 log_to_screen("User has chosen not to backup the PC"); 2186 2187 finish(1); 2187 2188 } … … 2199 2200 if (!bkpinfo->disaster_recovery) { 2200 2201 if (!popup_and_get_string 2201 ( _("Storage dir."),2202 _("Please enter the full path that contains your ISO images. Example: /mnt/raid0_0"),2202 ("Storage dir.", 2203 "Please enter the full path that contains your ISO images. Example: /mnt/raid0_0", 2203 2204 bkpinfo->isodir, MAX_STR_LEN / 4)) { 2204 log_to_screen( _("User has chosen not to backup the PC"));2205 log_to_screen("User has chosen not to backup the PC"); 2205 2206 finish(1); 2206 2207 } … … 2208 2209 if ((bkpinfo->compression_level = 2209 2210 which_compression_level()) == -1) { 2210 log_to_screen( _("User has chosen not to backup the PC"));2211 log_to_screen("User has chosen not to backup the PC"); 2211 2212 finish(1); 2212 2213 } 2213 2214 if (!popup_and_get_string 2214 ( _("ISO size."),2215 _("Please enter how big you want each ISO image to be (in megabytes). This should be less than or equal to the size of the CD-R[W]'s or DVD's you plan to backup to."),2215 ("ISO size.", 2216 "Please enter how big you want each ISO image to be (in megabytes). This should be less than or equal to the size of the CD-R[W]'s or DVD's you plan to backup to.", 2216 2217 sz_size, 16)) { 2217 log_to_screen( _("User has chosen not to backup the PC"));2218 log_to_screen("User has chosen not to backup the PC"); 2218 2219 finish(1); 2219 2220 } … … 2222 2223 } 2223 2224 if (!popup_and_get_string 2224 ( _("Prefix."),2225 _("Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files"),2225 ("Prefix.", 2226 "Please enter the prefix that will be prepended to your ISO filename. Example: machine1 to obtain machine1-[1-9]*.iso files", 2226 2227 bkpinfo->prefix, MAX_STR_LEN / 4)) { 2227 2228 log_to_screen("User has chosen not to backup the PC"); … … 2258 2259 #ifdef __FreeBSD__ 2259 2260 if (!popup_and_get_string 2260 ( _("Boot device"),2261 _("What is your boot device? (e.g. /dev/ad0)"),2261 ("Boot device", 2262 "What is your boot device? (e.g. /dev/ad0)", 2262 2263 bkpinfo->boot_device, MAX_STR_LEN / 4)) { 2263 log_to_screen( _("User has chosen not to backup the PC"));2264 log_to_screen("User has chosen not to backup the PC"); 2264 2265 finish(1); 2265 2266 } … … 2267 2268 #else 2268 2269 if (!popup_and_get_string 2269 ( _("Boot device"),2270 _("What is your boot device? (e.g. /dev/hda)"),2270 ("Boot device", 2271 "What is your boot device? (e.g. /dev/hda)", 2271 2272 bkpinfo->boot_device, MAX_STR_LEN / 4)) { 2272 log_to_screen( _("User has chosen not to backup the PC"));2273 log_to_screen("User has chosen not to backup the PC"); 2273 2274 finish(1); 2274 2275 } … … 2290 2291 if (i == 'U') { 2291 2292 if (ask_me_yes_or_no 2292 ( _("Unidentified boot loader. Shall I restore it byte-for-byte at restore time and hope for the best?")))2293 ("Unidentified boot loader. Shall I restore it byte-for-byte at restore time and hope for the best?")) 2293 2294 { 2294 2295 i = 'R'; // raw 2295 2296 } else { 2296 2297 log_to_screen 2297 ( _("I cannot find your boot loader. Please run mondoarchive with parameters."));2298 ("I cannot find your boot loader. Please run mondoarchive with parameters."); 2298 2299 finish(1); 2299 2300 } … … 2303 2304 strcpy(bkpinfo->include_paths, "/"); 2304 2305 if (!popup_and_get_string 2305 ( _("Backup paths"),2306 _("Please enter paths which you want me to backup. The default is '/' (i.e. everything)."),2306 ("Backup paths", 2307 "Please enter paths which you want me to backup. The default is '/' (i.e. everything).", 2307 2308 bkpinfo->include_paths, MAX_STR_LEN)) { 2308 log_to_screen( _("User has chosen not to backup the PC"));2309 log_to_screen("User has chosen not to backup the PC"); 2309 2310 finish(1); 2310 2311 } … … 2322 2323 if (strlen(tmp) > 2) { 2323 2324 if (!popup_and_get_string 2324 ( _("NTFS partitions"),2325 _("Please enter/confirm the NTFS partitions you wish to backup as well."),2325 ("NTFS partitions", 2326 "Please enter/confirm the NTFS partitions you wish to backup as well.", 2326 2327 tmp, MAX_STR_LEN / 4)) { 2327 log_to_screen( _("User has chosen not to backup the PC"));2328 log_to_screen("User has chosen not to backup the PC"); 2328 2329 finish(1); 2329 2330 } … … 2333 2334 2334 2335 if (!popup_and_get_string 2335 ( _("Exclude paths"),2336 _("Please enter paths which you do NOT want to backup. Separate them with spaces. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup."),2336 ("Exclude paths", 2337 "Please enter paths which you do NOT want to backup. Separate them with spaces. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup.", 2337 2338 bkpinfo->exclude_paths, MAX_STR_LEN)) { 2338 log_to_screen( _("User has chosen not to backup the PC"));2339 log_to_screen("User has chosen not to backup the PC"); 2339 2340 finish(1); 2340 2341 } … … 2343 2344 bkpinfo->verify_data = 2344 2345 ask_me_yes_or_no 2345 ( _("Will you want to verify your backups after Mondo has created them?"));2346 ("Will you want to verify your backups after Mondo has created them?"); 2346 2347 2347 2348 #ifndef __FreeBSD__ 2348 2349 if (!ask_me_yes_or_no 2349 ( _("Are you confident that your kernel is a sane, sensible, standard Linux kernel? Say 'no' if you are using a Gentoo <1.4 or Debian <3.0, please.")))2350 ("Are you confident that your kernel is a sane, sensible, standard Linux kernel? Say 'no' if you are using a Gentoo <1.4 or Debian <3.0, please.")) 2350 2351 #endif 2351 2352 { … … 2354 2355 2355 2356 if (!ask_me_yes_or_no 2356 ( _("Are you sure you want to proceed? Hit 'no' to abort."))) {2357 log_to_screen( _("User has chosen not to backup the PC"));2357 ("Are you sure you want to proceed? Hit 'no' to abort.")) { 2358 log_to_screen("User has chosen not to backup the PC"); 2358 2359 finish(1); 2359 2360 } -
branches/stable/mondo/mondo/common/libmondo-fifo.c
r501 r541 178 178 if (!res) { 179 179 bufsize++; 180 sprintf(tmp, _("Negotiated max buffer of %d MB "), bufsize);180 sprintf(tmp, "Negotiated max buffer of %d MB ", bufsize); 181 181 log_to_screen(tmp); 182 182 } else { … … 184 184 res = 0; 185 185 log_to_screen 186 ( _("Cannot negotiate a buffer of ANY size. Using dd instead."));186 ("Cannot negotiate a buffer of ANY size. Using dd instead."); 187 187 } 188 188 if (direction == 'r') { … … 220 220 if (run_program_and_log_output(command, 1)) { 221 221 fres = NULL; 222 log_to_screen( _("Failed to open tape streamer. Buffer error."));223 } else { 224 log_to_screen( _("Buffer successfully started."));222 log_to_screen("Failed to open tape streamer. Buffer error."); 223 } else { 224 log_to_screen("Buffer successfully started."); 225 225 } 226 226 -
branches/stable/mondo/mondo/common/libmondo-filelist.c
r538 r541 110 110 #include "my-stuff.h" 111 111 #include "mondostructures.h" 112 #include "lib-common-externs.h" 112 113 #include "libmondo-filelist.h" 113 114 #include "libmondo-string-EXT.h" 114 115 #include "libmondo-files-EXT.h" 115 116 #include "libmondo-fork-EXT.h" 116 #include " newt-specific-EXT.h"117 #include "libmondo-gui-EXT.h" 117 118 #include "libmondo-tools-EXT.h" 118 119 … … 202 203 malloc_string(cksumlist); 203 204 malloc_string(tmp); 204 mvaddstr_and_log_it(g_currentY, 0, _("Dividing filelist into sets"));205 206 log_to_screen( _("Dividing filelist into sets. Please wait."));205 mvaddstr_and_log_it(g_currentY, 0, "Dividing filelist into sets"); 206 207 log_to_screen("Dividing filelist into sets. Please wait."); 207 208 i = 0; 208 209 /* … … 502 503 if (depth == 0) { 503 504 open_evalcall_form("Freeing memory"); 504 log_to_screen( _("Freeing memory formerly occupied by filelist"));505 log_to_screen("Freeing memory formerly occupied by filelist"); 505 506 } 506 507 depth++; … … 940 941 /* add here */ 941 942 if (!(newnode = (struct s_node *) malloc(sizeof(struct s_node)))) { 942 log_to_screen( _("failed to malloc"));943 log_to_screen("failed to malloc"); 943 944 depth--; 944 945 return (1); … … 972 973 (node->down = 973 974 (struct s_node *) malloc(sizeof(struct s_node)))) { 974 log_to_screen( _("%s - failed to malloc"), string_to_add);975 log_to_screen("%s - failed to malloc", string_to_add); 975 976 return (1); 976 977 } … … 1025 1026 fatal_error("filelist does not exist -- cannot load it"); 1026 1027 } 1027 log_to_screen( _("Loading filelist"));1028 log_to_screen("Loading filelist"); 1028 1029 sprintf(command_to_open_fname, "gzip -dc %s", filelist_fname); 1029 1030 sprintf(tmp, "zcat %s | wc -l", filelist_fname); … … 1032 1033 atol(call_program_and_get_last_line_of_output(tmp)); 1033 1034 if (lines_in_filelist < 3) { 1034 log_to_screen( _("Warning - surprisingly short filelist."));1035 log_to_screen("Warning - surprisingly short filelist."); 1035 1036 } 1036 1037 g_original_noof_lines_in_filelist = lines_in_filelist; … … 1049 1050 return (NULL); 1050 1051 } 1051 open_evalcall_form( _("Loading filelist from disk"));1052 open_evalcall_form("Loading filelist from disk"); 1052 1053 for (fgets(fname, MAX_STR_LEN, pin); !feof(pin); 1053 1054 fgets(fname, MAX_STR_LEN, pin)) { … … 1166 1167 assert(outfname != NULL); // will be zerolength if save_filelist() is called by itself 1167 1168 if (depth == 0) { 1168 log_to_screen( _("Saving filelist"));1169 log_to_screen("Saving filelist"); 1169 1170 if (!(fout = fopen(outfname, "w"))) { 1170 1171 fatal_error("Cannot openout/save filelist"); 1171 1172 } 1172 1173 lines_in_filelist = g_original_noof_lines_in_filelist; /* set by load_filelist() */ 1173 open_evalcall_form( _("Saving selection to disk"));1174 open_evalcall_form("Saving selection to disk"); 1174 1175 } 1175 1176 for (node = filelist; node != NULL; node = node->right) { … … 1451 1452 if (bkpinfo->make_filelist) { 1452 1453 mvaddstr_and_log_it(g_currentY, 0, 1453 _("Making catalog of files to be backed up"));1454 "Making catalog of files to be backed up"); 1454 1455 } else { 1455 1456 mvaddstr_and_log_it(g_currentY, 0, 1456 _("Using supplied catalog of files to be backed up"));1457 "Using supplied catalog of files to be backed up"); 1457 1458 } 1458 1459 … … 1475 1476 log_OS_error("Call to mondo-makefilelist failed"); 1476 1477 *p_res++; 1477 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1478 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1478 1479 } else { 1479 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1480 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1480 1481 } 1481 1482 return (res); … … 1571 1572 #ifndef _XWIN 1572 1573 if (!g_text_mode) { 1573 sprintf(tmp, _("Reading %-68s"), dir);1574 sprintf(tmp, "Reading %-68s", dir); 1574 1575 newtDrawRootText(0, g_noof_rows - 3, tmp); 1575 1576 } … … 1705 1706 char *userdef_filelist) 1706 1707 { 1707 char sz_datefile_wildcard[] = "/var/cache/mondo /difflevel.%d";1708 char sz_datefile_wildcard[] = "/var/cache/mondo-archive/difflevel.%d"; 1708 1709 char *p, *q; 1709 1710 char sz_datefile[80]; … … 1774 1775 sprintf(exclude_paths, " %s %s %s %s %s %s . .. \ 1775 1776 " MNT_CDROM " " MNT_FLOPPY " /media/cdrom /media/cdrecorder \ 1776 /proc /sys / tmp /var/cache/mondo /var/cache/mindi", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);1777 /proc /sys /root/images/mondo /root/images/mindi ", excp, call_program_and_get_last_line_of_output("locate /win386.swp 2> /dev/null"), call_program_and_get_last_line_of_output("locate /hiberfil.sys 2> /dev/null"), call_program_and_get_last_line_of_output("locate /pagefile.sys 2> /dev/null"), (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir); 1777 1778 1778 1779 log_msg(2, "Excluding paths = '%s'", exclude_paths); -
branches/stable/mondo/mondo/common/libmondo-files.c
r501 r541 88 88 #include "libmondo-files.h" 89 89 90 #include "lib-common-externs.h" 91 90 92 #include "libmondo-tools-EXT.h" 91 #include " newt-specific-EXT.h"93 #include "libmondo-gui-EXT.h" 92 94 #include "libmondo-devices-EXT.h" 93 95 #include "libmondo-fork-EXT.h" … … 360 362 while (!kernel[0]) { 361 363 if (!ask_me_yes_or_no 362 ( _("Kernel not found or invalid. Choose another?"))) {364 ("Kernel not found or invalid. Choose another?")) { 363 365 return (1); 364 366 } 365 367 if (!popup_and_get_string 366 ( _("Kernel path"),367 _("What is the full path and filename of your kernel, please?"),368 ("Kernel path", 369 "What is the full path and filename of your kernel, please?", 368 370 kernel, MAX_STR_LEN / 4)) { 369 371 fatal_error … … 573 575 574 576 if (!does_file_exist(filename)) { 575 sprintf(tmp, "Tr ying to get last line of nonexistent file (%s)",577 sprintf(tmp, "Tring to get last line of nonexistent file (%s)", 576 578 filename); 577 579 log_it(tmp); … … 662 664 log_OS_error("Unable to openout cksumlist"); 663 665 paranoid_fclose(fin); 664 log_to_screen( _("Can't open checksum list"));666 log_to_screen("Can't open checksum list"); 665 667 return (1); 666 668 } … … 687 689 time_taken * 100 / (long) (percentage) - time_taken; 688 690 sprintf(tmp, 689 _("%02d%% done %02d:%02d taken %02d:%02d remaining %-37s"),691 "%02d%% done %02d:%02d taken %02d:%02d remaining %-37s\r", 690 692 percentage, (int) (time_taken / 60), 691 693 (int) (time_taken % 60), … … 1027 1029 sprintf(command, "which %s > /dev/null 2> /dev/null", fname); 1028 1030 sprintf(errorstr, 1029 _("Please install '%s'. I cannot find it on your system."),1031 "Please install '%s'. I cannot find it on your system.", 1030 1032 fname); 1031 1033 if (system(command)) { 1032 1034 log_to_screen(errorstr); 1033 1035 log_to_screen 1034 ( _("There may be hyperlink at http://www.mondorescue.com which"));1035 log_to_screen( _("will take you to the relevant (missing) package."));1036 ("There may be hyperlink at http://www.mondorescue.com which"); 1037 log_to_screen("will take you to the relevant (missing) package."); 1036 1038 return (1); 1037 1039 } else { … … 1148 1150 fatal_error("Failed to copy Mondo's stuff to scratchdir"); 1149 1151 } 1150 1151 /* i18n */1152 sprintf(command, CP_BIN " --parents /usr/share/locale/*/LC_MESSAGES/mondo.mo %s",bkpinfo->scratchdir);1153 log_msg(4, "command = %s", command);1154 run_program_and_log_output(command, 1);1155 1152 1156 1153 sprintf(tmp, "%s/payload.tgz", g_mondo_home); … … 1387 1384 if (scratchLL <= 1) { 1388 1385 sprintf(tmp, 1389 _("Your backup will probably occupy a single %s. Maybe two."),1386 "Your backup will probably occupy a single %s. Maybe two.", 1390 1387 media_descriptor_string(bkpinfo->backup_media_type)); 1391 1388 } else if (scratchLL > 4) { 1392 1389 sprintf(tmp, 1393 _("Your backup will occupy one meeeeellion media! (maybe %s)"),1390 "Your backup will occupy one meeeeellion media! (maybe %s)", 1394 1391 number_to_text((int) (scratchLL + 1))); 1395 1392 } else { 1396 sprintf(tmp, _("Your backup will occupy approximately %s media."),1393 sprintf(tmp, "Your backup will occupy approximately %s media.", 1397 1394 number_to_text((int) (scratchLL + 1))); 1398 1395 } -
branches/stable/mondo/mondo/common/libmondo-fork.c
r501 r541 106 106 #include "libmondo-fork.h" 107 107 #include "libmondo-string-EXT.h" 108 #include " newt-specific-EXT.h"108 #include "libmondo-gui-EXT.h" 109 109 #include "libmondo-files-EXT.h" 110 110 #include "libmondo-tools-EXT.h" 111 #include "lib-common-externs.h" 111 112 112 113 /*@unused@*/ … … 162 163 163 164 164 #define MONDO_POPMSG _("Your PC will not retract the CD tray automatically. Please call mondoarchive with the -m (manual CD tray) flag.")165 #define MONDO_POPMSG "Your PC will not retract the CD tray automatically. Please call mondoarchive with the -m (manual CD tray) flag." 165 166 166 167 /** … … 233 234 234 235 log_to_screen 235 ( _("Please be patient. Do not be alarmed by on-screen inactivity."));236 ("Please be patient. Do not be alarmed by on-screen inactivity."); 236 237 log_msg(4, "Calling open_evalcall_form() with what_i_am_doing='%s'", 237 238 what_i_am_doing); … … 261 262 if (retval) { 262 263 log_msg(2, "Basic call '%s' returned an error.", basic_call); 263 popup_and_OK( _("Press ENTER to continue."));264 popup_and_OK("Press ENTER to continue."); 264 265 popup_and_OK 265 ( _("mkisofs and/or cdrecord returned an error. CD was not created"));266 ("mkisofs and/or cdrecord returned an error. CD was not created"); 266 267 } 267 268 } … … 447 448 if (!(fin = popen(command, "r"))) { 448 449 log_OS_error("Unable to popen-in command"); 449 sprintf(tmp, _("Failed utterly to call '%s'"), command);450 sprintf(tmp, "Failed utterly to call '%s'", command); 450 451 log_to_screen(tmp); 451 452 return (1); 452 453 } 453 454 if (!does_file_exist(lockfile)) { 454 log_to_screen( _("Waiting for external binary to start"));455 log_to_screen("Waiting for external binary to start"); 455 456 for (i = 0; i < 60 && !does_file_exist(lockfile); sleep(1), i++) { 456 457 log_msg(3, "Waiting for lockfile %s to exist", lockfile); … … 711 712 if (pcno <= 5 && last_pcno > 40) { 712 713 close_evalcall_form(); 713 strcpy(title, _("Verifying..."));714 strcpy(title, "Verifying..."); 714 715 open_evalcall_form(title); 715 716 } … … 799 800 if (pcno <= 5 && last_pcno >= 40) { 800 801 close_evalcall_form(); 801 strcpy(title, _("Verifying..."));802 strcpy(title, "Verifying..."); 802 803 open_evalcall_form(title); 803 804 } -
branches/stable/mondo/mondo/common/libmondo-mountlist.c
r501 r541 53 53 #include "mondostructures.h" 54 54 #include "libmondo-mountlist.h" 55 #include "lib-common-externs.h" 55 56 #include "libmondo-raid-EXT.h" 56 57 #include "libmondo-devices-EXT.h" 57 58 #include "libmondo-tools-EXT.h" 58 59 #include "libmondo-string-EXT.h" 59 #include " newt-specific-EXT.h"60 #include "libmondo-gui-EXT.h" 60 61 61 62 /*@unused@*/ … … 950 951 if (!(fin = fopen(fname, "r"))) { 951 952 log_it("Unable to open mountlist - '%s'", fname); 952 log_to_screen( _("Cannot open mountlist"));953 log_to_screen("Cannot open mountlist"); 953 954 paranoid_free(incoming); 954 955 paranoid_free(siz); … … 993 994 && mountlist->el[items].device[0] != '#') { 994 995 if (items >= ARBITRARY_MAXIMUM) { 995 log_to_screen( _("Too many lines in mountlist.. ABORTING"));996 log_to_screen("Too many lines in mountlist.. ABORTING"); 996 997 finish(1); 997 998 } -
branches/stable/mondo/mondo/common/libmondo-raid.c
r501 r541 42 42 #include "my-stuff.h" 43 43 #include "mondostructures.h" 44 #include " newt-specific-EXT.h"44 #include "libmondo-gui-EXT.h" 45 45 #include "libmondo-files-EXT.h" 46 46 #include "libmondo-tools-EXT.h" 47 47 #include "libmondo-string-EXT.h" 48 #include "lib-common-externs.h" 48 49 #include "libmondo-raid.h" 49 50 … … 957 958 ("Oh my gosh. You actually think a YOTTABYTE will get you anywhere? What're you going to do with 1,208,925,819,614,629,174,706,176 bytes?!?!"); 958 959 popup_and_OK 959 ( _("That sizespec is more than 1,208,925,819,614,629,174,706,176 bytes. You have a shocking amount of data. Please send a screenshot to the list :-)"));960 ("That sizespec is more than 1,208,925,819,614,629,174,706,176 bytes. You have a shocking amount of data. Please send a screenshot to the list :-)"); 960 961 return size * sign * 1024 * 1024 * 1024 * 1024 * 1024 * 961 962 1024 * 1024 * 1024; … … 1112 1113 // FIXME --- the above line does not allow for spare disks 1113 1114 log_to_screen 1114 ( _("FIXME - create_raidtab_from_mdstat does not allow for spare disks"));1115 ("FIXME - create_raidtab_from_mdstat does not allow for spare disks"); 1115 1116 } 1116 1117 raidlist->entries = i; -
branches/stable/mondo/mondo/common/libmondo-stream.c
r501 r541 100 100 #include "mondostructures.h" 101 101 #include "libmondo-devices.h" 102 #include "lib-common-externs.h" 102 103 #include "libmondo-stream.h" 103 104 #include "libmondo-string-EXT.h" 104 105 #include "libmondo-files-EXT.h" 105 #include " newt-specific-EXT.h"106 #include "libmondo-gui-EXT.h" 106 107 #include "libmondo-fork-EXT.h" 107 108 #include "libmondo-tools-EXT.h" … … 518 519 // log_it("g_current_media_number = %d", g_current_media_number); 519 520 sprintf(tmp, 520 _("When the tape drive goes quiet, please insert volume %d in this series."),521 "When the tape drive goes quiet, please insert volume %d in this series.", 521 522 tapeno); 522 523 popup_and_OK(tmp); 523 open_evalcall_form( _("Waiting while the tape drive settles"));524 } else { 525 open_evalcall_form( _("Waiting while the tape drive rewinds"));524 open_evalcall_form("Waiting while the tape drive settles"); 525 } else { 526 open_evalcall_form("Waiting while the tape drive rewinds"); 526 527 } 527 528 … … 730 731 bkpinfo->internal_tape_block_size))) { 731 732 log_OS_error(g_tape_fifo); 732 log_to_screen( _("Cannot openin stream device"));733 log_to_screen("Cannot openin stream device"); 733 734 return (1); 734 735 } 735 log_to_screen( _("Reading stream"));736 log_to_screen("Reading stream"); 736 737 log_it("stream device = '%s'", bkpinfo->media_device); 737 738 /* skip data disks */ 738 739 open_evalcall_form("Skipping data disks on stream"); 739 log_to_screen( _("Skipping data disks on stream"));740 log_to_screen("Skipping data disks on stream"); 740 741 if (!(fout = fopen(outfname, "w"))) { 741 742 log_OS_error(outfname); 742 log_to_screen( _("Cannot openout datadisk all.tar.gz file"));743 log_to_screen("Cannot openout datadisk all.tar.gz file"); 743 744 return (-1); 744 745 } 745 746 if (!(datablock = (char *) malloc(256 * 1024))) { 746 log_to_screen( _("Unable to malloc 256*1024"));747 log_to_screen("Unable to malloc 256*1024"); 747 748 exit(1); 748 749 } … … 821 822 return (0); 822 823 } else { 823 log_to_screen( _("Failed to openout to cdstream (fifo)"));824 log_to_screen("Failed to openout to cdstream (fifo)"); 824 825 return (1); 825 826 } … … 854 855 open_device_via_buffer(tapedev, 'w', internal_tape_block_size))) { 855 856 log_OS_error(g_tape_fifo); 856 log_to_screen( _("Cannot openin stream device"));857 log_to_screen("Cannot openin stream device"); 857 858 return (1); 858 859 } … … 997 998 if (!fout) { 998 999 log_OS_error(outfname); 999 log_to_screen( _("Cannot openout file"));1000 log_to_screen("Cannot openout file"); 1000 1001 return (1); 1001 1002 } … … 1055 1056 } 1056 1057 if (strcmp(temp_cksum, actual_cksum)) { 1057 sprintf(tmp, _("actual cksum=%s; recorded cksum=%s"), actual_cksum,1058 sprintf(tmp, "actual cksum=%s; recorded cksum=%s", actual_cksum, 1058 1059 temp_cksum); 1059 1060 log_to_screen(tmp); 1060 sprintf(tmp, _("%s (%ld K) is corrupt on tape"), temp_fname,1061 sprintf(tmp, "%s (%ld K) is corrupt on tape", temp_fname, 1061 1062 (long) orig_size >> 10); 1062 1063 log_to_screen(tmp); … … 1210 1211 log_it("mediasize = %ld", mediasize); 1211 1212 we_need_a_new_tape = TRUE; 1212 log_to_screen( _("Should have started a new tape/CD already"));1213 log_to_screen("Should have started a new tape/CD already"); 1213 1214 } 1214 1215 if ((g_tape_posK + length_of_incoming_file / 1024) >> 10 >= … … 1367 1368 bkpinfo->internal_tape_block_size))) { 1368 1369 log_OS_error(g_tape_fifo); 1369 log_to_screen( _("Cannot openin stream device"));1370 log_to_screen("Cannot openin stream device"); 1370 1371 return (1); 1371 1372 } … … 1405 1406 if (g_current_media_number > MAX_NOOF_MEDIA) { 1406 1407 res++; 1407 log_to_screen( _("Too many tapes. Man, you need to use nfs!"));1408 log_to_screen("Too many tapes. Man, you need to use nfs!"); 1408 1409 } 1409 1410 if (bkpinfo->backup_media_type == cdstream) { … … 1417 1418 g_tape_stream = popen(command, "w"); 1418 1419 if (!g_tape_stream) { 1419 log_to_screen( _("Failed to openout to cdstream (fifo)"));1420 log_to_screen("Failed to openout to cdstream (fifo)"); 1420 1421 return (1); 1421 1422 } … … 1427 1428 bkpinfo->internal_tape_block_size))) { 1428 1429 log_OS_error(g_tape_fifo); 1429 log_to_screen( _("Cannot openin stream device"));1430 log_to_screen("Cannot openin stream device"); 1430 1431 return (1); 1431 1432 } … … 1512 1513 /*@ end vars *************************************************** */ 1513 1514 1514 open_evalcall_form( _("Writing data disks to tape"));1515 log_to_screen( _("Writing data disks to tape"));1515 open_evalcall_form("Writing data disks to tape"); 1516 log_to_screen("Writing data disks to tape"); 1516 1517 log_it("Data disks = %s", fname); 1517 1518 if (!does_file_exist(fname)) { 1518 sprintf(tmp, _("Cannot find %s"), fname);1519 sprintf(tmp, "Cannot find %s", fname); 1519 1520 log_to_screen(tmp); 1520 1521 return (1); … … 1705 1706 if (!g_tape_stream) { 1706 1707 log_to_screen 1707 ( _("You're not backing up to tape. Why write a tape header?"));1708 ("You're not backing up to tape. Why write a tape header?"); 1708 1709 return (1); 1709 1710 } … … 1750 1751 1751 1752 /*@ end vars *************************************************** */ 1752 sprintf(tmp, _("Wrong marker! (Should be %s, "),1753 sprintf(tmp, "Wrong marker! (Should be %s, ", 1753 1754 marker_to_string(should_be)); 1754 sprintf(tmp + strlen(tmp), _("is actually %s)"), marker_to_string(it_is));1755 sprintf(tmp + strlen(tmp), "is actually %s)", marker_to_string(it_is)); 1755 1756 log_to_screen(tmp); 1756 1757 } -
branches/stable/mondo/mondo/common/libmondo-string.c
r501 r541 65 65 #include "mondostructures.h" 66 66 #include "libmondo-string.h" 67 #include "lib-common-externs.h" 67 68 #include "libmondo-files-EXT.h" 68 #include " newt-specific-EXT.h"69 #include "libmondo-gui-EXT.h" 69 70 #include "libmondo-tools-EXT.h" 70 71 … … 296 297 ("Oh my gosh. You actually think a YOTTABYTE will get you anywhere? What're you going to do with 1,208,925,819,614,629,174,706,176 bytes of data?!?!"); 297 298 popup_and_OK 298 ( _("That sizespec is more than 1,208,925,819,614,629,174,706,176 bytes. You have a shocking amount of data. Please send a screenshot to the list :-)"));299 ("That sizespec is more than 1,208,925,819,614,629,174,706,176 bytes. You have a shocking amount of data. Please send a screenshot to the list :-)"); 299 300 fatal_error("Integer overflow."); 300 301 } else if (ch != 'm' && ch != 'M') { … … 983 984 sev = 3; 984 985 sprintf(reason, 985 _("Changed since backup. Consider running a differential backup in a day or two."));986 "Changed since backup. Consider running a differential backup in a day or two."); 986 987 if (!strncmp(filename, "/var/", 5)) { 987 988 sev = 2; 988 989 sprintf(reason, 989 _("/var's contents will change regularly, inevitably."));990 "/var's contents will change regularly, inevitably."); 990 991 } 991 992 if (!strncmp(filename, "/home", 5)) { 992 993 sev = 2; 993 994 sprintf(reason, 994 _("It's in your /home partiton. Therefore, it is important."));995 "It's in your /home partiton. Therefore, it is important."); 995 996 } 996 997 if (!strncmp(filename, "/usr/", 5)) { 997 998 sev = 3; 998 999 sprintf(reason, 999 _("You may have installed/removed software during the backup."));1000 "You may have installed/removed software during the backup."); 1000 1001 } 1001 1002 if (!strncmp(filename, "/etc/", 5)) { 1002 1003 sev = 3; 1003 1004 sprintf(reason, 1004 _("Do not edit config files while backing up your PC."));1005 "Do not edit config files while backing up your PC."); 1005 1006 } 1006 1007 if (!strcmp(filename, "/etc/adjtime") 1007 1008 || !strcmp(filename, "/etc/mtab")) { 1008 1009 sev = 1; 1009 sprintf(reason, _("This file changes all the time. It's OK."));1010 sprintf(reason, "This file changes all the time. It's OK."); 1010 1011 } 1011 1012 if (!strncmp(filename, "/root/", 6)) { 1012 1013 sev = 3; 1013 sprintf(reason, _("Were you compiling/editing something in /root?"));1014 sprintf(reason, "Were you compiling/editing something in /root?"); 1014 1015 } 1015 1016 if (!strncmp(filename, "/root/.", 7)) { 1016 1017 sev = 2; 1017 sprintf(reason, _("Temp or 'dot' files changed in /root."));1018 sprintf(reason, "Temp or 'dot' files changed in /root."); 1018 1019 } 1019 1020 if (!strncmp(filename, "/var/lib/", 9)) { 1020 1021 sev = 2; 1021 sprintf(reason, _("Did you add/remove software during backing?"));1022 sprintf(reason, "Did you add/remove software during backing?"); 1022 1023 } 1023 1024 if (!strncmp(filename, "/var/lib/rpm", 12)) { 1024 1025 sev = 3; 1025 sprintf(reason, _("Did you add/remove software during backing?"));1026 sprintf(reason, "Did you add/remove software during backing?"); 1026 1027 } 1027 1028 if (!strncmp(filename, "/var/lib/slocate", 16)) { 1028 1029 sev = 1; 1029 1030 sprintf(reason, 1030 _("The 'update' daemon ran during backup. This does not affect the integrity of your backup."));1031 "The 'update' daemon ran during backup. This does not affect the integrity of your backup."); 1031 1032 } 1032 1033 if (!strncmp(filename, "/var/log/", 9) … … 1035 1036 sev = 1; 1036 1037 sprintf(reason, 1037 _("Log files change frequently as the computer runs. Fret not."));1038 "Log files change frequently as the computer runs. Fret not."); 1038 1039 } 1039 1040 if (!strncmp(filename, "/var/spool", 10)) { 1040 1041 sev = 1; 1041 1042 sprintf(reason, 1042 _("Background processes or printers were active. This does not affect the integrity of your backup."));1043 "Background processes or printers were active. This does not affect the integrity of your backup."); 1043 1044 } 1044 1045 if (!strncmp(filename, "/var/spool/mail", 10)) { 1045 1046 sev = 2; 1046 sprintf(reason, _("Mail was sent/received during backup."));1047 sprintf(reason, "Mail was sent/received during backup."); 1047 1048 } 1048 1049 if (filename[strlen(filename) - 1] == '~') { 1049 1050 sev = 1; 1050 1051 sprintf(reason, 1051 _("Backup copy of another file which was modified recently."));1052 "Backup copy of another file which was modified recently."); 1052 1053 } 1053 1054 if (strstr(filename, "cache")) { 1054 1055 sev = 1; 1055 1056 sprintf(reason, 1056 _("Part of a cache of data. Caches change from time to time. Don't worry."));1057 "Part of a cache of data. Caches change from time to time. Don't worry."); 1057 1058 } 1058 1059 if (!strncmp(filename, "/var/run/", 9) … … 1131 1132 // { fatal_error( "percentage_media_full_comment() - unknown media size"); } 1132 1133 { 1133 sprintf(outstr, _("Volume %d: %s kilobytes archived so far"),1134 sprintf(outstr, "Volume %d: %s kilobytes archived so far", 1134 1135 g_current_media_number, pos_w_commas); 1135 1136 return (outstr); … … 1144 1145 percentage = 100; 1145 1146 } 1146 sprintf(outstr, _("Volume %d: ["), g_current_media_number);1147 sprintf(outstr, "Volume %d: [", g_current_media_number); 1147 1148 } else { 1148 1149 percentage = … … 1160 1161 } 1161 1162 j = (int) strlen(outstr); 1162 sprintf(outstr + j, _("] %d%% used"), percentage);1163 sprintf(outstr + j, "] %d%% used", percentage); 1163 1164 paranoid_free(pos_w_commas); 1164 1165 paranoid_free(tmp); -
branches/stable/mondo/mondo/common/libmondo-tools.c
r538 r541 174 174 #include "my-stuff.h" 175 175 #include "mondostructures.h" 176 #include "lib-common-externs.h" 176 177 #include "libmondo-tools.h" 177 #include " newt-specific-EXT.h"178 #include "libmondo-gui-EXT.h" 178 179 #include "libmondo-files-EXT.h" 179 180 #include "libmondo-fork-EXT.h" … … 270 271 newtSuspend(); 271 272 #endif 272 printf( _("ASSERTION FAILED: `%s'\n"), exp);273 printf( _("\tat %s:%d in %s\n\n"), file, line, function);274 printf( _("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "));273 printf("ASSERTION FAILED: `%s'\n", exp); 274 printf("\tat %s:%d in %s\n\n", file, line, function); 275 printf("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "); 275 276 do { 276 277 is_valid = TRUE; … … 299 300 case '\n': 300 301 printf 301 ( _("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "));302 ("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? "); 302 303 break; 303 304 default: 304 305 is_valid = FALSE; 305 printf( _("Invalid choice.\n"));306 printf("Invalid choice.\n"); 306 307 break; 307 308 } … … 472 473 #endif 473 474 } 475 476 477 /** 478 * Log a trace message to the trace file. 479 * @bug This function seems orphaned. Please remove. 480 */ 481 void log_trace(char *o) 482 { 483 /*@ pointers **************************************************** */ 484 FILE *fout; 485 486 /*@ buffers ***************************************************** */ 487 char output[MAX_STR_LEN]; 488 489 /*@ int ****************************************************** */ 490 int i; 491 492 /*@ end vars *************************************************** */ 493 494 if (o[0] == '\0') { 495 return; 496 } 497 strcpy(output, o); 498 i = (int) strlen(output); 499 if (i <= 0) { 500 return; 501 } 502 if (output[i - 1] < 32) { 503 output[i - 1] = '\0'; 504 } 505 if (g_text_mode 506 /* && !strstr(last_line_of_file(MONDO_LOGFILE),output) */ ) { 507 printf("%s\n", output); 508 } 509 510 fout = fopen(MONDO_TRACEFILE, "a"); 511 if (fout) { 512 fprintf(fout, "%s\n", output); 513 paranoid_fclose(fout); 514 } else { 515 log_OS_error("Cannot write to tracefile"); 516 } 517 } 518 519 520 474 521 475 522 … … 923 970 strcpy(bkpinfo->isodir, "/"); 924 971 } else { 925 strcpy(bkpinfo->isodir, "/ var/cache/mondo/iso");972 strcpy(bkpinfo->isodir, "/root/images/mondo"); 926 973 } 927 974 strcpy(bkpinfo->prefix, STD_PREFIX); … … 1022 1069 if (atol(tmp) < 35000) { 1023 1070 retval++; 1024 log_to_screen( _("You must have at least 32MB of RAM to use Mondo."));1071 log_to_screen("You must have at least 32MB of RAM to use Mondo."); 1025 1072 } 1026 1073 if (atol(tmp) < 66000) { 1027 1074 log_to_screen 1028 ( _("WARNING! You have very little RAM. Please upgrade to 64MB or more."));1029 } 1030 #endif 1031 1032 if ((Lres = free_space_on_given_partition("/ var/cache/mondo")) == -1) /*{1075 ("WARNING! You have very little RAM. Please upgrade to 64MB or more."); 1076 } 1077 #endif 1078 1079 if ((Lres = free_space_on_given_partition("/root")) == -1) { 1033 1080 Lres = free_space_on_given_partition("/"); 1034 1081 } 1035 */1036 1082 log_it("Free space on given partition = %ld MB", Lres); 1037 1083 1038 1084 if (Lres < 50) { 1039 fatal_error("Your /var/cache/mondo partition has <50MB free. Please adjust your partition table to something saner."); 1085 run_program_and_log_output 1086 ("rm -Rf /root/images/mindi; mkdir -p /home/root/images/mindi; mkdir -p /root/images; ln -sf /home/root/images/mindi /root/images/mindi", 1087 3); 1088 // fatal_error("Your / (or /root) partition has <50MB free. Please adjust your partition table to something saner."); 1040 1089 } 1041 1090 … … 1051 1100 ("grep ramdisk /proc/devices", FALSE)) { 1052 1101 if (!ask_me_yes_or_no 1053 ( _("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?")))1102 ("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?")) 1054 1103 { 1055 1104 // retval++; 1056 1105 log_to_screen 1057 ( _("It looks as if your kernel lacks ramdisk and initrd support."));1106 ("It looks as if your kernel lacks ramdisk and initrd support."); 1058 1107 log_to_screen 1059 ( _("I'll allow you to proceed but FYI, if I'm right, your kernel is broken."));1108 ("I'll allow you to proceed but FYI, if I'm right, your kernel is broken."); 1060 1109 } 1061 1110 } … … 1079 1128 !run_program_and_log_output 1080 1129 ("mount | grep -w dos | grep -v /dev/fd | grep -v nexdisk", 0)) { 1081 log_to_screen( _("I think you have a Windows 9x partition."));1130 log_to_screen("I think you have a Windows 9x partition."); 1082 1131 retval += whine_if_not_found("parted"); 1083 1132 #ifndef __IA64__ … … 1085 1134 // retval += 1086 1135 if (!find_home_of_exe("ms-sys")) { 1087 log_to_screen( _("Please install ms-sys just in case."));1136 log_to_screen("Please install ms-sys just in case."); 1088 1137 } 1089 1138 #endif … … 1095 1144 } else { 1096 1145 log_to_screen 1097 ( _("Your system lacks the 'cmp' binary. I'll create a dummy cmp for you."));1146 ("Your system lacks the 'cmp' binary. I'll create a dummy cmp for you."); 1098 1147 if (run_program_and_log_output 1099 1148 ("cp -f `which true` /usr/bin/cmp", 0)) { … … 1110 1159 if (strstr(tmp, "autofs")) { 1111 1160 log_to_screen 1112 ( _("Your CD-ROM is mounted via autofs. I therefore cannot tell"));1161 ("Your CD-ROM is mounted via autofs. I therefore cannot tell"); 1113 1162 log_to_screen 1114 ( _("if a CD actually is inserted. If a CD is inserted, please"));1115 log_to_screen( _("eject it. Thank you."));1163 ("if a CD actually is inserted. If a CD is inserted, please"); 1164 log_to_screen("eject it. Thank you."); 1116 1165 log_it 1117 1166 ("Ignoring autofs CD-ROM 'mount' since we hope nothing's in it."); … … 1139 1188 retval++; 1140 1189 log_to_screen 1141 ( _("Please find out what happened to /etc/modules.conf"));1190 ("Please find out what happened to /etc/modules.conf"); 1142 1191 } 1143 1192 } … … 1152 1201 1153 1202 if (run_program_and_log_output("mindi -V", 1)) { 1154 log_to_screen( _("Could not ascertain mindi's version number."));1203 log_to_screen("Could not ascertain mindi's version number."); 1155 1204 log_to_screen 1156 ( _("You have not installed Mondo and/or Mindi properly."));1157 log_to_screen( _("Please uninstall and reinstall them both."));1205 ("You have not installed Mondo and/or Mindi properly."); 1206 log_to_screen("Please uninstall and reinstall them both."); 1158 1207 fatal_error("Please reinstall Mondo and Mindi."); 1159 1208 } … … 1161 1210 ("mindi --makemountlist /tmp/mountlist.txt.test", 5)) { 1162 1211 log_to_screen 1163 ( _("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason."));1212 ("Mindi --makemountlist /tmp/mountlist.txt.test failed for some reason."); 1164 1213 log_to_screen 1165 ( _("Please run that command by hand and examine /var/log/mindi.log"));1214 ("Please run that command by hand and examine /var/log/mindi.log"); 1166 1215 log_to_screen 1167 ( _("for more information. Perhaps your /etc/fstab file is insane."));1216 ("for more information. Perhaps your /etc/fstab file is insane."); 1168 1217 log_to_screen 1169 ( _("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see."));1218 ("Perhaps Mindi's MakeMountlist() subroutine has a bug. We'll see."); 1170 1219 retval++; 1171 1220 } … … 1174 1223 && !does_file_exist("/etc/raidtab")) { 1175 1224 log_to_screen 1176 ( _("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat"));1225 ("You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat"); 1177 1226 create_raidtab_from_mdstat("/etc/raidtab", "/proc/mdstat"); 1178 1227 } 1179 1228 1180 1229 if (retval) { 1181 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1230 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1182 1231 } else { 1183 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1232 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1184 1233 } 1185 1234 return (retval); … … 1443 1492 } 1444 1493 1494 1495 /** 1496 * The standard log_debug_msg() (log_msg() also due to a macro). Writes some describing 1497 * information to the logfile. 1498 */ 1499 void standard_log_debug_msg(int debug_level, const char *szFile, 1500 const char *szFunction, int nLine, 1501 const char *fmt, ...) 1502 { 1503 va_list args; 1504 int i; 1505 static int depth = 0; 1506 char *tmp; 1507 FILE *fout; 1508 1509 if (depth > 5) { 1510 depth--; 1511 return; 1512 } 1513 depth++; 1514 1515 malloc_string(tmp); 1516 1517 if (debug_level <= g_loglevel) { 1518 va_start(args, fmt); 1519 if (!(fout = fopen(MONDO_LOGFILE, "a"))) { 1520 return; 1521 } // fatal_error("Failed to openout to logfile - sheesh..."); } 1522 1523 // add tabs to distinguish log levels 1524 if (debug_level > 0) { 1525 for (i = 1; i < debug_level; i++) 1526 fprintf(fout, "\t"); 1527 if (getpid() == g_main_pid) 1528 fprintf(fout, "[Main] %s->%s#%d: ", szFile, szFunction, 1529 nLine); 1530 else if (getpid() == g_buffer_pid && g_buffer_pid > 0) 1531 fprintf(fout, "[Buff] %s->%s#%d: ", szFile, szFunction, 1532 nLine); 1533 else 1534 fprintf(fout, "[TH=%d] %s->%s#%d: ", getpid(), szFile, 1535 szFunction, nLine); 1536 } 1537 vfprintf(fout, fmt, args); 1538 1539 // do not slow down the progran if standard debug level 1540 // must be enabled: if no flush, the log won't be up-to-date if there 1541 // is a segfault 1542 //if (g_dwDebugLevel != 1) 1543 1544 va_end(args); 1545 fprintf(fout, "\n"); 1546 paranoid_fclose(fout); 1547 } 1548 depth--; 1549 paranoid_free(tmp); 1550 } 1551 1552 /** 1553 * Function pointer to the @c log_debug_msg function to use. Points to standard_log_debug_msg() by default. 1554 */ 1555 void (*log_debug_msg) (int, const char *, const char *, int, const char *, 1556 ...) = standard_log_debug_msg; 1557 1558 1445 1559 /** 1446 1560 * If @p y, malloc @p x, else free @p x. … … 1472 1586 paranoid_free(g_magicdev_command); 1473 1587 } 1588 1589 /* 1590 char**list_of_arrays[] = { 1591 &g_boot_mountpt, 1592 &g_mondo_home, 1593 &g_tmpfs_mountpt, 1594 &g_erase_tmpdir_and_scratchdir, 1595 &g_serial_string, 1596 &g_magicdev_command, 1597 NULL}; 1598 1599 char**ppcurr; 1600 int i; 1601 1602 for(i=0;list_of_arrays[i];i++) 1603 { 1604 log_msg(5, "Allocating %d", i); 1605 ppcurr = list_of_arrays[i]; 1606 if (mal) 1607 { *ppcurr = malloc(MAX_STR_LEN); } 1608 else 1609 { 1610 if (*ppcurr) 1611 { 1612 free(*ppcurr); 1613 } 1614 } 1615 } 1616 log_msg(5, "Returning"); 1617 */ 1474 1618 } 1475 1619 -
branches/stable/mondo/mondo/common/libmondo-verify.c
r501 r541 103 103 #include "mondostructures.h" 104 104 #include "libmondo-verify.h" 105 #include " newt-specific-EXT.h"105 #include "libmondo-gui-EXT.h" 106 106 #include "libmondo-files-EXT.h" 107 107 #include "libmondo-fork-EXT.h" … … 110 110 #include "libmondo-devices-EXT.h" 111 111 #include "libmondo-tools-EXT.h" 112 #include "lib-common-externs.h" 112 113 113 114 /*@unused@*/ … … 757 758 orig_cksum); 758 759 log_msg(2, tmp); 759 sprintf(tmp, _("%s has changed on live filesystem"),760 sprintf(tmp, "%s has changed on live filesystem", 760 761 biggie_fname); 761 762 log_to_screen(tmp); … … 810 811 sprintf(curr_acl_list_fname, ACL_BIGGLST_FNAME_RAW_SZ, 811 812 bkpinfo->tmpdir); 812 log_to_screen( _("Verifying regular archives on tape"));813 log_to_screen("Verifying regular archives on tape"); 813 814 total_afioballs = get_last_filelist_number(bkpinfo) + 1; 814 open_progress_form( _("Verifying filesystem"),815 _("I am verifying archives against your live filesystem now."),816 _("Please wait. This may take a couple of hours."), "",815 open_progress_form("Verifying filesystem", 816 "I am verifying archives against your live filesystem now.", 817 "Please wait. This may take a couple of hours.", "", 817 818 total_afioballs); 818 819 res = read_header_block_from_stream(&size, fname, &ctrl_chr); … … 853 854 res = verify_an_afioball_from_stream(bkpinfo, fname, size); 854 855 if (res) { 855 sprintf(tmp, _("Afioball %ld differs from live filesystem"),856 sprintf(tmp, "Afioball %ld differs from live filesystem", 856 857 current_afioball_number); 857 858 log_to_screen(tmp); … … 937 938 noof_biggiefiles = (long) size; 938 939 log_msg(1, "noof_biggiefiles = %ld", noof_biggiefiles); 939 open_progress_form( _("Verifying big files"), comment,940 _("Please wait. This may take some time."), "",940 open_progress_form("Verifying big files", comment, 941 "Please wait. This may take some time.", "", 941 942 noof_biggiefiles); 942 943 for (res = read_header_block_from_stream(&size, orig_fname, &ctrl_chr); … … 954 955 p++; 955 956 } 956 sprintf(comment, _("Verifying bigfile #%ld (%ld K)"),957 sprintf(comment, "Verifying bigfile #%ld (%ld K)", 957 958 current_biggiefile_number, (long) size >> 10); 958 959 update_progress_form(comment); … … 1019 1020 1020 1021 sprintf(mountpoint, "%s/cdrom", bkpinfo->tmpdir); 1021 sprintf(fname, "%s/%s/%s-%d.iso", bkpinfo-> isodir, bkpinfo->nfs_remote_dir,1022 bkpinfo-> prefix, g_current_media_number);1022 sprintf(fname, "%s/%s/%s-%d.iso", bkpinfo->nfs_remote_dir, 1023 bkpinfo->isodir, bkpinfo->prefix, g_current_media_number); 1023 1024 1024 1025 mkdir(mountpoint, 1777); … … 1030 1031 log_msg(2, tmp); 1031 1032 if (bkpinfo->manual_cd_tray) { 1032 popup_and_OK( _("Please push CD tray closed."));1033 popup_and_OK("Please push CD tray closed."); 1033 1034 } 1034 1035 if (find_and_mount_actual_cd(bkpinfo, mountpoint)) { 1035 log_to_screen( _("failed to mount actual CD"));1036 log_to_screen("failed to mount actual CD"); 1036 1037 return (1); 1037 1038 } … … 1043 1044 mddevice = make_vn(fname); 1044 1045 if (ret) { 1045 sprintf(tmp, _("make_vn of %s failed; unable to verify ISO\n"),1046 sprintf(tmp, "make_vn of %s failed; unable to verify ISO\n", 1046 1047 fname); 1047 1048 log_to_screen(tmp); … … 1054 1055 #endif 1055 1056 if (run_program_and_log_output(command, FALSE)) { 1056 sprintf(tmp, _("%s failed; unable to mount ISO image\n"),1057 sprintf(tmp, "%s failed; unable to mount ISO image\n", 1057 1058 command); 1058 1059 log_to_screen(tmp); … … 1132 1133 1133 1134 log_msg(3, "verify_tape_backups --- starting"); 1134 log_to_screen( _("Verifying backups"));1135 log_to_screen("Verifying backups"); 1135 1136 openin_tape(bkpinfo); 1136 1137 /* verify archives themselves */ … … 1157 1158 && length_of_file(changed_files_fname) > 2) { 1158 1159 log_to_screen 1159 ( _("Warning - unable to check logfile to derive list of changed files"));1160 ("Warning - unable to check logfile to derive list of changed files"); 1160 1161 } else { 1161 1162 log_to_screen 1162 ( _("No differences found. Therefore, no 'changed.files' text file."));1163 ("No differences found. Therefore, no 'changed.files' text file."); 1163 1164 } 1164 1165 } … … 1176 1177 log_msg(0, tmp); 1177 1178 log_to_screen 1178 ( _("See /tmp/changed.files for a list of nonmatching files."));1179 ("See /tmp/changed.files for a list of nonmatching files."); 1179 1180 log_to_screen 1180 ( _("The files probably changed on filesystem, not on backup media."));1181 ("The files probably changed on filesystem, not on backup media."); 1181 1182 // retval++; 1182 1183 } -
branches/stable/mondo/mondo/common/libmondo.h
r501 r541 9 9 #include "libmondo-files-EXT.h" 10 10 #include "libmondo-fork-EXT.h" 11 #include " newt-specific-EXT.h"11 #include "libmondo-gui-EXT.h" 12 12 #include "libmondo-mountlist-EXT.h" 13 13 #include "libmondo-raid-EXT.h" -
branches/stable/mondo/mondo/common/mondostructures.h
r538 r541 477 477 * If you do nothing, "/" will be used. 478 478 */ 479 char include_paths[MAX_STR_LEN *4];479 char include_paths[MAX_STR_LEN]; 480 480 481 481 /** … … 484 484 * the scratchdir, and the tempdir are automatically excluded. 485 485 */ 486 char exclude_paths[MAX_STR_LEN *4];486 char exclude_paths[MAX_STR_LEN]; 487 487 488 488 /** … … 801 801 struct s_mdrec el[MAXIMUM_RAID_DEVS]; 802 802 }; 803 804 struct s_mrconf {805 int ia64_boot_size;806 char *iso_creation_cmd;807 }; -
branches/stable/mondo/mondo/common/my-stuff.h
r538 r541 1 /* 2 * Common defines across the project 3 * 4 * $Id$ 5 */ 6 7 #ifndef _MY_STUFF_H_ 8 #define _MY_STUFF_H_ 9 10 /* BERLIOS 1 /* my-stuff.h 2 $Id$ 3 . 4 5 6 07/14 7 - ARCH_THREADS is now 2; buffers, 4 8 9 07/10 10 - added acl, xattr stuff 11 12 06/19 13 - added AUX_VER 14 15 06/14 16 - added DO_MBR_PLEASE 17 18 04/17 19 - replaced INTERNAL_TAPE_BLK_SIZE with g_internal_tape_block_size 20 and DEFAULT_INTERNAL_TAPE_BLOCK_SIZE 21 22 04/13 23 - log_msg is now calling standard_log_debug_msg, not the alias (log_debug_msg) 24 25 04/03/2004 26 - added star and SELINUX support 27 28 11/20/2003 29 - boot from isolinux.bin, not mindi-boot.2880.img 30 31 11/15 32 - reduced SLICE_SIZE from 8192 to 4096 33 34 10/08 35 - set p-i-h volsize to 1GB 36 37 10/21 38 - added MNT_CDROM and FREELOADER 39 40 10/11 41 - added DEFAULT_DVD_DISK_SIZE 42 - added PARTIMAGE_DEBUG_LEVEL 43 44 09/27 45 - better logging 46 47 09/24 48 - added MR_LOGFILE="/tmp/mondo-restore.log" 49 50 09/22 51 - added bool, FALSE, TRUE 52 53 09/20 54 - increasd PPCFG_RAMDISK_SIZE to 150 55 56 09/12 57 - reduced MAX_STR_LEN from 512 to 460 58 59 09/10 60 - moved PPCFG_RAMDISK_SIZE here 61 62 09/05 63 - better config.h stuff 64 65 06/05 66 - changed fgrep to grep 67 68 05/19 69 - added CP_BIN 70 71 05/05 72 - added #include <sys/param.h> and sys/sem.h and ioctl.h 73 74 05/03 75 - added kill_anything_like_this() 76 77 04/24/2003 78 - added *STUB #define's 79 80 11/22/2002 81 - added INTERNAL_TAPE_BLK_SIZE 82 83 10/10 84 - use #define to create XMondo-friendly log file name if appropriate 85 86 08/30 87 - changed ARBITRARY_MAXIMUM to 512 88 89 08/26 90 - set MAX_STR_LEN at 512 but halved it within many _structures_ 91 - changed ARBITRARY_MAXIMUM to 128 92 93 08/08 94 - added '#include <signal.h>' 95 - added WELCOME_STRING 96 97 06/19 98 - changed tape block size from 8192 to 65536 99 100 04/08 101 - added manual_cd_tray flag to bkpinfo 102 103 03/31 104 - added restore_path to struct s_bkpinfo 105 106 03/21 107 - updated version# to 1.42 108 109 02/20 110 - added bkpinfo->using_cdstream 111 112 02/06 113 - added MONDO_VERSION 114 115 02/02 116 - added MONDO_CFG_FILE 117 - added SLICE_SIZE 118 119 01/31 120 - removed MINDI_HOME: it is unnecessary 121 - replaced MONDO_HOME with variable g_mondo_home 122 123 01/25 124 - added MONDO_HOME, MINDI_HOME 125 126 01/21 127 - added s_node{} structure 128 129 01/17 130 - added sys/shm.h, types.h, ipc.h 131 132 01/02/2002 133 - added that groovy bkpinfo{} stuff 134 135 11/29/2001 136 - added raidlist{} struct 137 138 08/27 139 - stuff 140 */ 141 11 142 #define HAVE_MALLOC 1 12 */ 143 13 144 14 145 // Extra info for ACLs and SELINUX users … … 27 158 * Create the illusion of a Boolean type. 28 159 */ 29 #define bool unsigned char160 #define bool int 30 161 #define TRUE 1 31 162 #define FALSE 0 32 163 #endif 33 164 34 /* BERLIOS 165 #ifndef _MY_STUFF_H_ 166 #define _MY_STUFF_H_ 167 35 168 #ifdef HAVE_CONFIG_H 36 169 #include <config.h> 37 170 #endif 38 */39 171 40 172 #ifndef __FreeBSD__ … … 49 181 #include <stdio.h> 50 182 #include <stdlib.h> 51 /* BERLIOS52 183 #ifndef __USE_FILE_OFFSET64 53 184 #define __USE_FILE_OFFSET64 … … 56 187 #define __USE_LARGEFILE64 57 188 #endif 58 */59 189 #include <sys/stat.h> 60 190 #include <fcntl.h> … … 66 196 #include <unistd.h> 67 197 #include <signal.h> 198 //#include <curses.h> 68 199 #include <newt.h> 69 200 #include <ctype.h> … … 72 203 #include <assert.h> 73 204 74 /*75 205 #if defined(DEBUG) && !__cplusplus 76 206 int count; 77 char trace_log[255]; 207 char trace_log[255]; /*buffer for logging */ 78 208 char *trace_log_ptr; 79 #endif 80 */ 81 82 #define STD_PREFIX "mondorescue" 209 #endif /* DEBUG */ 210 211 #define IA64_BOOT_SIZE "8192" /* Should be coherent with mindi */ 212 #define STD_PREFIX "mondorescue" /* Should be coherent with mindi */ 83 213 84 214 /** … … 123 253 #define CRC_M16 0xA001 ///< Mask for crc16. 124 254 #define CRC_MTT 0x1021 ///< Mask for crc-ccitt. 255 256 #define FALSE 0 ///< The ubiquitous FALSE macro. 257 #define TRUE 1 ///< The even more ubiquitous TRUE macro. 125 258 126 259 #define SCREEN_LENGTH 25 ///< The default size of the screen. … … 212 345 * @c growisofs command to generate a bootable DVD using isolinux, except for the directory to image. 213 346 */ 214 #define MONDO_GROWISOFS_REGULAR_SYSLINUX "growisofs - use-the-force-luke -J -no-emul-boot -boot-load-size 4 -b isolinux.bin --boot-info-table -c boot.cat -boot-load-size 4 -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL_Version -V _CD#_ -v"347 #define MONDO_GROWISOFS_REGULAR_SYSLINUX "growisofs -speed=1 -use-the-force-luke -J -no-emul-boot -boot-load-size 4 -b isolinux.bin --boot-info-table -c boot.cat -boot-load-size 4 -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL_Version -V _CD#_ -v" 215 348 216 349 /** 217 350 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 218 351 */// -b images/mindi-boot.2880.img 219 #define MONDO_GROWISOFS_REGULAR_ELILO "growisofs - use-the-force-luke -no-emul-boot -b images/mindi-boot.2880.img -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v"352 #define MONDO_GROWISOFS_REGULAR_ELILO "growisofs -speed=1 -use-the-force-luke -no-emul-boot -b images/mindi-boot.2880.img -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 220 353 221 354 /** 222 355 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 223 356 */// -b images/mindi-boot.2880.img 224 #define MONDO_GROWISOFS_REGULAR_LILO "growisofs - no-emul-boot -b isolinux.bin -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v"357 #define MONDO_GROWISOFS_REGULAR_LILO "growisofs -speed=1 -no-emul-boot -b isolinux.bin -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 225 358 226 359 /** 227 360 * @c growisofs command to generate a nonbootable DVD, except for the directory to image. 228 361 */ 229 #define MONDO_GROWISOFS_NONBOOT "growisofs - use-the-force-luke -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v"362 #define MONDO_GROWISOFS_NONBOOT "growisofs -speed=1 -use-the-force-luke -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 230 363 231 364 /** 232 365 * Welcome string displayed at the top of the newt interface. 233 366 */ 234 #define WELCOME_STRING _("W E L C O M E T O M O N D O R E S C U E")367 #define WELCOME_STRING "W E L C O M E T O M O N D O R E S C U E" 235 368 236 369 /** … … 393 526 #define DEFAULT_MR_LOGLEVEL 4 394 527 395 #ifdef ENABLE_NLS396 # include <libintl.h>397 # undef _398 # define _(String) dgettext (PACKAGE, String)399 # ifdef gettext_noop400 # define N_(String) gettext_noop (String)401 # else402 # define N_(String) (String)403 # endif404 #else405 # define textdomain(String) (String)406 # define gettext(String) (String)407 # define dgettext(Domain,Message) (Message)408 # define dcgettext(Domain,Message,Type) (Message)409 # define bindtextdomain(Domain,Directory) (Domain)410 # define _(String) (String)411 # define N_(String) (String)412 413 #endif414 415 416 417 528 #endif /* _MY_STUFF_H_ */ -
branches/stable/mondo/mondo/common/newt-specific.c
r502 r541 118 118 #include "libmondo-tools-EXT.h" 119 119 #include "libmondo-fork-EXT.h" 120 #include "newt-specific-EXT.h" 120 #include "libmondo-gui-EXT.h" 121 #include "lib-common-externs.h" 121 122 122 123 /*@unused@*/ … … 226 227 tmp[i - 1] = '\0'; 227 228 } 228 if (strstr( _("yesYES"), tmp)) {229 if (strstr("yesYES", tmp)) { 229 230 paranoid_free(tmp); 230 231 return (TRUE); 231 } else if (strstr( _("NOno"), tmp)) {232 } else if (strstr("NOno", tmp)) { 232 233 paranoid_free(tmp); 233 234 return (FALSE); … … 235 236 system("sync"); 236 237 printf 237 ( _("Please enter either YES or NO (or yes or no, or y or n, or...)\n"));238 ("Please enter either YES or NO (or yes or no, or y or n, or...)\n"); 238 239 } 239 240 } 240 241 } else { 241 242 paranoid_free(tmp); 242 return (popup_with_buttons(prompt, _("Yes"), _("No")));243 return (popup_with_buttons(prompt, "Yes", "No")); 243 244 } 244 245 } … … 272 273 tmp[i - 1] = '\0'; 273 274 } 274 if (strstr( _("okOKOkYESyes"), tmp)) {275 if (strstr("okOKOkYESyes", tmp)) { 275 276 paranoid_free(tmp); 276 277 return (TRUE); … … 281 282 } else { 282 283 paranoid_free(tmp); 283 return (popup_with_buttons(prompt, _(" Okay "), _("Cancel")));284 return (popup_with_buttons(prompt, " Okay ", "Cancel")); 284 285 } 285 286 } … … 425 426 ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null"); 426 427 printf 427 ( _("If you require technical support, please contact the mailing list.\n"));428 printf( _("See http://www.mondorescue.org for details.\n"));428 ("If you require technical support, please contact the mailing list.\n"); 429 printf("See http://www.mondorescue.org for details.\n"); 429 430 printf 430 ( _("The list's members can help you, if you attach that file to your e-mail.\n"));431 printf( _("Log file: %s\n"), MONDO_LOGFILE);431 ("The list's members can help you, if you attach that file to your e-mail.\n"); 432 printf("Log file: %s\n", MONDO_LOGFILE); 432 433 if (does_file_exist("/tmp/MA.log.gz")) { 433 434 printf 434 ( _("FYI, I have gzipped the log and saved it to /tmp/MA.log.gz\n"));435 } 436 printf( _("Mondo has aborted.\n"));435 ("FYI, I have gzipped the log and saved it to /tmp/MA.log.gz\n"); 436 } 437 printf("Mondo has aborted.\n"); 437 438 register_pid(0, "mondo"); // finish() does this too, FYI 438 439 if (!g_main_pid) { … … 489 490 // system("clear"); 490 491 // iamhere("Finished calling newtFinished"); 491 printf( _("Execution run ended; result=%d\n"), signal);492 printf( _("Type 'less %s' to see the output log\n"), MONDO_LOGFILE);492 printf("Execution run ended; result=%d\n", signal); 493 printf("Type 'less %s' to see the output log\n", MONDO_LOGFILE); 493 494 free_libmondo_global_strings(); 494 495 exit(signal); … … 782 783 while (((ch = getchar()) != '\n') && (ch != EOF)); 783 784 } else { 784 (void) popup_with_buttons(prompt, _(" OK "), "");785 (void) popup_with_buttons(prompt, " OK ", ""); 785 786 } 786 787 } … … 842 843 #endif 843 844 ); 844 b_1 = newtButton(6, newtTextboxGetNumLines(text) + 4, _(" OK "));845 b_2 = newtButton(18, newtTextboxGetNumLines(text) + 4, _("Cancel"));845 b_1 = newtButton(6, newtTextboxGetNumLines(text) + 4, " OK "); 846 b_2 = newtButton(18, newtTextboxGetNumLines(text) + 4, "Cancel"); 846 847 // newtOpenWindow (8, 5, 54, newtTextboxGetNumLines (text) + 9, title); 847 848 newtCenteredWindow(54, newtTextboxGetNumLines(text) + 9, title); … … 930 931 } 931 932 // newtOpenWindow (25, 5, 46, newtTextboxGetNumLines (text) + 7, "Alert"); 932 newtCenteredWindow(46, newtTextboxGetNumLines(text) + 7, _("Alert"));933 newtCenteredWindow(46, newtTextboxGetNumLines(text) + 7, "Alert"); 933 934 myForm = newtForm(NULL, NULL, 0); 934 935 newtFormAddComponents(myForm, text, b_1, b_2, NULL); … … 996 997 newtCls(); 997 998 newtPushHelpLine 998 ( _("Welcome to Mondo Rescue, by Hugo Rabson and the Internet. All rights reversed."));999 ("Welcome to Mondo Rescue, by Hugo Rabson and the Internet. All rights reversed."); 999 1000 /* newtDrawRootText(28,0,"Welcome to Mondo Rescue"); */ 1000 1001 newtDrawRootText(18, 0, WELCOME_STRING); … … 1074 1075 g_isoform_old_progress = percentage; 1075 1076 sprintf(timeline_str, 1076 _("%2ld:%02ld taken %2ld:%02ld remaining"),1077 "%2ld:%02ld taken %2ld:%02ld remaining", 1077 1078 time_taken / 60, time_taken % 60, time_remaining / 60, 1078 1079 time_remaining % 60); 1079 1080 if (percentage < 3) { 1080 sprintf(pcline_str, _(" Working"));1081 sprintf(pcline_str, " Working"); 1081 1082 for (j = 0; j < g_mysterious_dot_counter; j++) { 1082 1083 strcat(pcline_str, "."); … … 1088 1089 special_dot_char(g_mysterious_dot_counter)); 1089 1090 } else { 1090 sprintf(pcline_str, _(" %3d%% done %3d%% to go"),1091 sprintf(pcline_str, " %3d%% done %3d%% to go", 1091 1092 percentage, 100 - percentage); 1092 1093 } … … 1234 1235 1235 1236 if (g_text_mode) { 1236 printf( _("---progress-form---1--- %s%s"), blurb1, "\r\n");1237 printf( _("---progress-form---2--- %s%s"), blurb2, "\r\n");1238 printf( _("---progress-form---3--- %s%s"), blurb3, "\r\n");1239 printf( _("---progress-form---E---\n"));1237 printf("---progress-form---1--- %s\r\n", blurb1); 1238 printf("---progress-form---2--- %s\r\n", blurb2); 1239 printf("---progress-form---3--- %s\r\n", blurb3); 1240 printf("---progress-form---E---\n"); 1240 1241 sprintf(taskprogress, "TASK: ["); 1241 1242 for (i = 0; i < percentage; i += 5) { … … 1246 1247 } 1247 1248 if (percentage > 100) { 1248 log_msg(2, _("percentage = %d"), percentage);1249 log_msg(2, "percentage = %d", percentage); 1249 1250 } 1250 1251 sprintf(taskprogress + strlen(taskprogress), 1251 1252 "] %3d%c", percentage, '%'); 1252 1253 sprintf(taskprogress + strlen(taskprogress), 1253 _(" done; %2ld:%02ld to go"),1254 " done; %2ld:%02ld to go", 1254 1255 time_remaining / 60, time_remaining % 60); 1255 printf( _("---progress-form---4--- %s\r\n"), taskprogress);1256 printf("---progress-form---4--- %s\r\n", taskprogress); 1256 1257 } else { 1257 1258 center_string(blurb1, 54); … … 1329 1330 if (g_text_mode) { 1330 1331 for (backup_type = none; backup_type == none;) { 1331 printf( _("Backup type ("));1332 printf("Backup type ("); 1332 1333 for (i = 0; possible_responses[i]; i++) { 1333 1334 printf("%c%s", (i == 0) ? '\0' : ' ', … … 1351 1352 if (restoring) { 1352 1353 strcpy(title_sz, 1353 _("Please choose the backup media from which you want to read data."));1354 strcpy(minimsg_sz, _("Read from:"));1354 "Please choose the backup media from which you want to read data."); 1355 strcpy(minimsg_sz, "Read from:"); 1355 1356 } else { 1356 1357 strcpy(title_sz, 1357 _("Please choose the backup media to which you want to archive data."));1358 strcpy(minimsg_sz, _("Backup to:"));1358 "Please choose the backup media to which you want to archive data."); 1359 strcpy(minimsg_sz, "Backup to:"); 1359 1360 } 1360 1361 newtPushHelpLine(title_sz); 1361 1362 // newtOpenWindow (23, 3, 34, 17, minimsg_sz); 1362 1363 newtCenteredWindow(34, 17, minimsg_sz); 1363 b1 = newtButton(1, 1, _("CD-R disks "));1364 b2 = newtButton(17, 1, _("CD-RW disks"));1365 b3 = newtButton(1, 9, _("Tape drive "));1366 b4 = newtButton(17, 5, _("CD streamer"));1367 b5 = newtButton(1, 5, _(" DVD disks "));1368 b6 = newtButton(17, 9, _(" NFS mount "));1369 b7 = newtButton(1, 13, _(" Hard disk "));1370 b8 = newtButton(17, 13, _(" Exit "));1364 b1 = newtButton(1, 1, "CD-R disks "); 1365 b2 = newtButton(17, 1, "CD-RW disks"); 1366 b3 = newtButton(1, 9, "Tape drive "); 1367 b4 = newtButton(17, 5, "CD streamer"); 1368 b5 = newtButton(1, 5, " DVD disks "); 1369 b6 = newtButton(17, 9, " NFS mount "); 1370 b7 = newtButton(1, 13, " Hard disk "); 1371 b8 = newtButton(17, 13, " Exit "); 1371 1372 myForm = newtForm(NULL, NULL, 0); 1372 1373 newtFormAddComponents(myForm, b1, b5, b3, b7, b2, b4, b6, b8, … … 1426 1427 newtDrawRootText(18, 0, WELCOME_STRING); 1427 1428 newtPushHelpLine 1428 ( _(" Please specify the level of compression that you want."));1429 (" Please specify the level of compression that you want."); 1429 1430 // newtOpenWindow (23, 3, 34, 13, "How much compression?"); 1430 newtCenteredWindow(34, 13, _("How much compression?"));1431 b1 = newtButton(4, 1, _("Maximum"));1432 b2 = newtButton(18, 1, _("Average"));1433 b3 = newtButton(4, 5, _("Minimum"));1434 b4 = newtButton(18, 5, _(" None "));1435 b5 = newtButton(4, 9, _(" Exit "));1431 newtCenteredWindow(34, 13, "How much compression?"); 1432 b1 = newtButton(4, 1, "Maximum"); 1433 b2 = newtButton(18, 1, "Average"); 1434 b3 = newtButton(4, 5, "Minumum"); 1435 b4 = newtButton(18, 5, " None "); 1436 b5 = newtButton(4, 9, " Exit "); 1436 1437 myForm = newtForm(NULL, NULL, 0); 1437 1438 newtFormAddComponents(myForm, b1, b3, b2, b4, b5, NULL); … … 1514 1515 paranoid_fclose(fin); 1515 1516 if (filelist->entries >= ARBITRARY_MAXIMUM) { 1516 log_to_screen( _("Arbitrary limits suck, man!"));1517 log_to_screen("Arbitrary limits suck, man!"); 1517 1518 paranoid_free(tmp); 1518 1519 return (1); … … 1656 1657 } 1657 1658 sprintf(differ_sz, 1658 _(" %d files differ. Hit 'Select' to pick a file. Hit 'Close' to quit the list."),1659 " %d files differ. Hit 'Select' to pick a file. Hit 'Close' to quit the list.", 1659 1660 i); 1660 1661 newtPushHelpLine(differ_sz); 1661 bClose = newtCompactButton(10, 15, _(" Close "));1662 bSelect = newtCompactButton(30, 15, _(" Select "));1663 sprintf(tmp, "%-10s %-20s", _("Priority"), _("Filename"));1662 bClose = newtCompactButton(10, 15, " Close "); 1663 bSelect = newtCompactButton(30, 15, " Select "); 1664 sprintf(tmp, "%-10s %-20s", "Priority", "Filename"); 1664 1665 headerMsg = newtLabel(2, 1, tmp); 1665 newtOpenWindow(5, 4, 70, 16, _("Non-matching files"));1666 newtOpenWindow(5, 4, 70, 16, "Non-matching files"); 1666 1667 myForm = newtForm(NULL, NULL, 0); 1667 1668 newtFormAddComponents(myForm, headerMsg, fileListbox, bClose, … … 1677 1678 i++); 1678 1679 if (i == filelist->entries && filelist->entries > 0) { 1679 log_to_screen( _("I don't know what that button does!"));1680 log_to_screen("I don't know what that button does!"); 1680 1681 } else { 1681 1682 currline = i; -
branches/stable/mondo/mondo/mondoarchive/Makefile.am
r532 r541 2 2 ## Process with Automake to generate Makefile.in 3 3 ## 4 AM_CPPFLAGS = -DMONDO_CONF_DIR=\"$(sysconfdir)\"5 4 6 5 ## Headers -
branches/stable/mondo/mondo/mondoarchive/main.c
r538 r541 247 247 { 248 248 struct s_bkpinfo *bkpinfo; 249 struct s_mrconf *mrconf;250 249 char *tmp; 251 250 int res, retval; 252 251 char *say_at_end; 253 252 254 #ifdef ENABLE_NLS255 setlocale(LC_ALL, "");256 (void) textdomain("mondo");257 #endif258 253 /* Make sure I'm root; abort if not */ 259 254 if (getuid() != 0) { 260 fprintf(stderr, _("Please run as root.\n"));255 fprintf(stderr, "Please run as root.\r\n"); 261 256 exit(127); 262 257 } … … 266 261 && (!strcmp(argv[argc - 1], "-v") || !strcmp(argv[argc - 1], "-V") 267 262 || !strcmp(argv[argc - 1], "--version"))) { 268 printf( _("mondoarchive v%s\nSee man page for help\n"), PACKAGE_VERSION);263 printf("mondoarchive v%s\nSee man page for help\n", PACKAGE_VERSION); 269 264 exit(0); 270 265 } … … 275 270 malloc_string(tmp); 276 271 malloc_string(say_at_end); 277 278 /* Initialize Configuration Structure */279 mrarchive_init_conf(mrconf);280 272 281 273 res = 0; … … 283 275 diffs = 0; 284 276 say_at_end[0] = '\0'; 285 printf( _("Initializing...\n"));277 printf("Initializing...\n"); 286 278 if (!(bkpinfo = malloc(sizeof(struct s_bkpinfo)))) { 287 279 fatal_error("Cannot malloc bkpinfo"); … … 329 321 setup_newt_stuff(); 330 322 if (!strstr(argv[2], "filelist")) { 331 printf( _("Sorry - filelist goes first\n"));323 printf("Sorry - filelist goes first\n"); 332 324 finish(1); 333 325 } else { … … 358 350 setup_newt_stuff(); 359 351 if (!strstr(argv[2], "filelist")) { 360 printf( _("Sorry - filelist goes first\n"));352 printf("Sorry - filelist goes first\n"); 361 353 finish(1); 362 354 } else { … … 378 370 setup_newt_stuff(); 379 371 if (find_cdrw_device(tmp)) { 380 printf( _("Failed to find CDR-RW drive\n"));381 } else { 382 printf( _("CD-RW is at %s\n"), tmp);372 printf("Failed to find CDR-RW drive\n"); 373 } else { 374 printf("CD-RW is at %s\n", tmp); 383 375 } 384 376 tmp[0] = '\0'; 385 377 if (find_cdrom_device(tmp, atoi(argv[2]))) { 386 printf( _("Failed to find CD-ROM drive\n"));387 } else { 388 printf( _("CD-ROM is at %s\n"), tmp);378 printf("Failed to find CD-ROM drive\n"); 379 } else { 380 printf("CD-ROM is at %s\n", tmp); 389 381 } 390 382 finish(0); … … 396 388 setup_newt_stuff(); 397 389 if (find_dvd_device(tmp, atoi(argv[2]))) { 398 printf( _("Failed to find DVD drive\n"));399 } else { 400 printf( _("DVD is at %s\n"), tmp);390 printf("Failed to find DVD drive\n"); 391 } else { 392 printf("DVD is at %s\n", tmp); 401 393 } 402 394 finish(0); … … 409 401 if (argc > 2 && !strcmp(argv[1], "test-dev")) { 410 402 if (is_dev_an_NTFS_dev(argv[2])) { 411 printf( _("%s is indeed an NTFS dev\n"), argv[2]);412 } else { 413 printf( _("%s is _not_ an NTFS dev\n"), argv[2]);403 printf("%s is indeed an NTFS dev\n", argv[2]); 404 } else { 405 printf("%s is _not_ an NTFS dev\n", argv[2]); 414 406 } 415 407 finish(0); … … 434 426 if (res) { 435 427 printf 436 ( _("Errors were detected in the command line you supplied.\n"));437 printf( _("Please review the log file - %s \n"),MONDO_LOGFILE);428 ("Errors were detected in the command line you supplied.\n"); 429 printf("Please review the log file - " MONDO_LOGFILE "\n"); 438 430 log_msg(1, "Mondoarchive will now exit."); 439 431 finish(1); … … 449 441 450 442 log_to_screen 451 ( _("BusyBox's sources are available from http://www.busybox.net"));443 ("BusyBox's sources are available from http://www.busybox.net"); 452 444 sprintf(g_erase_tmpdir_and_scratchdir, "rm -Rf %s %s", bkpinfo->tmpdir, 453 445 bkpinfo->scratchdir); … … 461 453 finish(0); 462 454 */ 463 res = backup_data(bkpinfo , mrconf);455 res = backup_data(bkpinfo); 464 456 retval += res; 465 457 if (res) { 466 458 strcat(say_at_end, 467 _("Data archived. Please check the logs, just as a precaution. "));468 } else { 469 strcat(say_at_end, _("Data archived OK. "));459 "Data archived. Please check the logs, just as a precaution. "); 460 } else { 461 strcat(say_at_end, "Data archived OK. "); 470 462 } 471 463 } … … 475 467 res = verify_data(bkpinfo); 476 468 if (res < 0) { 477 sprintf(tmp, _("%d difference%c found."), -res,469 sprintf(tmp, "%d difference%c found.", -res, 478 470 (-res != 1) ? 's' : ' '); 479 471 strcat(say_at_end, tmp); … … 495 487 if (!retval) { 496 488 mvaddstr_and_log_it(g_currentY++, 0, 497 _("Backup and/or verify ran to completion. Everything appears to be fine."));489 "Backup and/or verify ran to completion. Everything appears to be fine."); 498 490 } else { 499 491 mvaddstr_and_log_it(g_currentY++, 0, 500 _("Backup and/or verify ran to completion. However, errors did occur."));501 } 502 503 if (does_file_exist("/ var/cache/mindi/mondorescue.iso")) {492 "Backup and/or verify ran to completion. However, errors did occur."); 493 } 494 495 if (does_file_exist("/root/images/mindi/mondorescue.iso")) { 504 496 log_to_screen 505 ( _("/var/cache/mindi/mondorescue.iso, a boot/utility CD, is available if you want it."));497 ("/root/images/mindi/mondorescue.iso, a boot/utility CD, is available if you want it."); 506 498 } 507 499 … … 510 502 if (g_text_mode) { 511 503 log_to_screen 512 ( _("Type 'less /tmp/changed.files' to see which files don't match the archives"));504 ("Type 'less /tmp/changed.files' to see which files don't match the archives"); 513 505 } else { 514 506 log_msg(1, 515 _("Type 'less /tmp/changed.files' to see which files don't match the archives"));507 "Type 'less /tmp/changed.files' to see which files don't match the archives"); 516 508 log_msg(2, "Calling popup_changelist_from_file()"); 517 509 popup_changelist_from_file("/tmp/changed.files"); … … 531 523 system("rm -Rf /tmp.mondo.* /mondo.scratch.*"); 532 524 if (!retval) { 533 printf( _("Mondoarchive ran OK.\n"));525 printf("Mondoarchive ran OK.\n"); 534 526 } else { 535 printf( _("Errors occurred during backup. Please check logfile.\n"));527 printf("Errors occurred during backup. Please check logfile.\n"); 536 528 } 537 529 distro_specific_kludges_at_end_of_mondoarchive(); … … 557 549 if (!g_text_mode) { 558 550 popup_and_OK 559 ( _("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt."));560 log_to_screen( _("See %s for details of backup run."), MONDO_LOGFILE);551 ("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt."); 552 log_to_screen("See %s for details of backup run.", MONDO_LOGFILE); 561 553 finish(retval); 562 554 } else { 563 printf( _("See %s for details of backup run.\n"), MONDO_LOGFILE);555 printf("See %s for details of backup run.\n", MONDO_LOGFILE); 564 556 exit(retval); 565 557 } -
branches/stable/mondo/mondo/mondoarchive/mondo-cli.c
r538 r541 247 247 flag_set[i] = FALSE; 248 248 } 249 // strcpy (bkpinfo->tmpdir, "/root/images/mondo"); 250 // strcpy (bkpinfo->scratchdir, "/home"); 249 251 for (j = 1; j <= MAX_NOOF_MEDIA; j++) { 250 252 bkpinfo->media_size[j] = 650; … … 354 356 /*@ buffers ** */ 355 357 char *tmp; 356 char *tmp1;357 358 char *psz; 358 359 … … 376 377 if (i == 0) { 377 378 retval++; 378 log_to_screen( _("You must specify the media type\n"));379 log_to_screen("You must specify the media type\n"); 379 380 } 380 381 if (i > 1) { 381 382 retval++; 382 log_to_screen( _("Please specify only one media type\n"));383 log_to_screen("Please specify only one media type\n"); 383 384 } 384 385 if (flag_set['K']) { … … 390 391 if (flag_set['L'] && flag_set['0']) { 391 392 retval++; 392 log_to_screen( _("You cannot have 'no compression' _and_ LZOP.\n"));393 log_to_screen("You cannot have 'no compression' _and_ LZOP.\n"); 393 394 } 394 395 bkpinfo->backup_data = flag_set['O']; 395 396 bkpinfo->verify_data = flag_set['V']; 396 397 if (flag_set['I'] && !bkpinfo->backup_data) { 397 log_to_screen( _("-I switch is ignored if just verifying"));398 log_to_screen("-I switch is ignored if just verifying"); 398 399 } 399 400 if (flag_set['E'] && !bkpinfo->backup_data) { 400 log_to_screen( _("-E switch is ignored if just verifying"));401 log_to_screen("-E switch is ignored if just verifying"); 401 402 } 402 403 … … 426 427 if (flag_set['f'] || flag_set['l']) { 427 428 log_to_screen 428 ( _("You don't need to specify bootloader or bootdevice"));429 ("You don't need to specify bootloader or bootdevice"); 429 430 } 430 431 } … … 441 442 strcat(bkpinfo->include_paths, " "); 442 443 } 443 asprintf(&tmp1, flag_val['I']); 444 char *p = tmp1; 445 char *q = tmp1; 446 447 /* Cut the flag_val['I'] in parts containing all paths to test them */ 448 while (p != NULL) { 449 q = strchr(p, ' '); 450 if (q != NULL) { 451 *q = '\0'; 452 p = q+1 ; 453 if (stat(p, &buf) != 0) { 454 log_msg(1, "ERROR ! %s doesn't exist", p); 455 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 456 } 457 } else { 458 if (stat(p, &buf) != 0) { 459 log_msg(1, "ERROR ! %s doesn't exist", p); 460 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 461 } 462 p = NULL; 463 } 464 } 465 paranoid_free(tmp1); 466 444 if (stat(flag_val['I'], &buf) != 0) { 445 log_msg(1, "ERROR ! %s doesn't exist", flag_val['I']); 446 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 447 } 467 448 strncpy(bkpinfo->include_paths + strlen(bkpinfo->include_paths), 468 449 flag_val['I'], 469 4*MAX_STR_LEN - strlen(bkpinfo->include_paths));450 MAX_STR_LEN - strlen(bkpinfo->include_paths)); 470 451 log_msg(1, "include_paths is now '%s'", bkpinfo->include_paths); 471 452 if (bkpinfo->include_paths[0] == '-') { 472 453 retval++; 473 log_to_screen( _("Please supply a sensible value with '-I'\n"));454 log_to_screen("Please supply a sensible value with '-I'\n"); 474 455 } 475 456 } … … 486 467 retval++; 487 468 log_to_screen 488 ( _("Please do not use -J in combination with -I. If you want to make a list of files to backup, that's fine, use -J <filename> but please don't combine -J with -I. Thanks. :-)"));469 ("Please do not use -J in combination with -I. If you want to make a list of files to backup, that's fine, use -J <filename> but please don't muddy the waters by combining -J with -I. Thanks. :-)"); 489 470 } 490 471 bkpinfo->make_filelist = FALSE; … … 504 485 if (g_kernel_version >= 2.6 && !strstr(flag_val['d'], "/dev/")) { 505 486 log_to_screen 506 ( _("Linus says 2.6 has a broken ide-scsi module. Proceed at your own risk..."));487 ("Linus says 2.6 has a broken ide-scsi module. Proceed at your own risk..."); 507 488 } 508 489 … … 520 501 if (!flag_set['L']) { 521 502 log_to_screen 522 ( _("You must use -L with -C. Therefore I am setting it for you."));503 ("You must use -L with -C. Therefore I am setting it for you."); 523 504 flag_set['L'] = 1; 524 505 flag_val['L'][0] = '\0'; … … 550 531 flag_set['d'] = TRUE; 551 532 sprintf(tmp, 552 _("You didn't specify a tape streamer device. I'm assuming %s"),533 "You didn't specify a tape streamer device. I'm assuming %s", 553 534 flag_val['d']); 554 535 log_to_screen(tmp); … … 565 546 if (!find_dvd_device(flag_val['d'], FALSE)) { 566 547 flag_set['d'] = TRUE; 567 log_to_screen( _("I guess DVD drive is at %s"), flag_val['d']);548 log_to_screen("I guess DVD drive is at %s", flag_val['d']); 568 549 } 569 550 } … … 584 565 strcat(flag_val['s'], "m"); 585 566 log_to_screen 586 ( _("You did not specify a size (-s) for DVD. I'm guessing %s."),567 ("You did not specify a size (-s) for DVD. I'm guessing %s.", 587 568 flag_val['s']); 588 569 flag_set['s'] = 1; … … 640 621 if (strlen(bkpinfo->isodir) < 3) { 641 622 retval++; 642 log_to_screen( _("NFS share is not mounted. Please mount it.\n"));623 log_to_screen("NFS share is not mounted. Please mount it.\n"); 643 624 } 644 625 log_msg(3, "mount = %s", bkpinfo->nfs_mount); … … 678 659 strcat(bkpinfo->exclude_paths, " "); 679 660 } 680 asprintf(&tmp1, flag_val['E']); 681 char *p = tmp1; 682 char *q = tmp1; 683 684 /* Cut the flag_val['E'] in parts containing all paths to test them */ 685 while (p != NULL) { 686 q = strchr(p, ' '); 687 if (q != NULL) { 688 *q = '\0'; 689 p = q+1 ; 690 if (stat(p, &buf) != 0) { 691 log_msg(1, "WARNING ! %s doesn't exist", p); 692 } 693 } else { 694 if (stat(p, &buf) != 0) { 695 log_msg(1, "WARNING ! %s doesn't exist", p); 696 } 697 p = NULL; 698 } 699 } 700 paranoid_free(tmp1); 701 661 if (stat(flag_val['E'], &buf) != 0) { 662 log_msg(1, "WARNING ! %s doesn't exist", flag_val['E']); 663 } 702 664 strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths), 703 665 flag_val['E'], 704 4*MAX_STR_LEN - strlen(bkpinfo->exclude_paths));666 MAX_STR_LEN - strlen(bkpinfo->exclude_paths)); 705 667 } 706 668 if (flag_set['e']) { … … 765 727 retval++; 766 728 sprintf(tmp, 767 _("You specified kernel '%s', which does not exist\n"),729 "You specified kernel '%s', which does not exist\n", 768 730 bkpinfo->kernel_path); 769 731 log_to_screen(tmp); … … 797 759 retval++; 798 760 sprintf(tmp, 799 _("Are you sure directory '%s' exists in remote dir '%s'?\nIf so, do you have rights to write to it?\n"),761 "Are you sure directory '%s' exists in remote dir '%s'?\nIf so, do you have rights to write to it?\n", 800 762 bkpinfo->nfs_remote_dir, bkpinfo->nfs_mount); 801 763 log_to_screen(tmp); … … 807 769 if (g_kernel_version >= 2.6) { 808 770 if (popup_and_get_string 809 ( _("Device"), _("Please specify the device"),771 ("Device", "Please specify the device", 810 772 bkpinfo->media_device, MAX_STR_LEN / 4)) { 811 773 retval++; 812 log_to_screen( _("User opted to cancel."));774 log_to_screen("User opted to cancel."); 813 775 } 814 776 } else if (find_cdrw_device(bkpinfo->media_device)) { 815 777 retval++; 816 778 log_to_screen 817 ( _("Tried and failed to find CD-R[W] drive automatically.\n"));779 ("Tried and failed to find CD-R[W] drive automatically.\n"); 818 780 } else { 819 781 flag_set['d'] = TRUE; … … 824 786 if (!flag_set['d'] && !flag_set['n'] && !flag_set['C']) { 825 787 retval++; 826 log_to_screen( _("Please specify the backup device/directory.\n"));788 log_to_screen("Please specify the backup device/directory.\n"); 827 789 fatal_error 828 790 ("You didn't use -d to specify the backup device/directory."); … … 845 807 retval++; 846 808 log_to_screen 847 ( _("Please specify a tempdir which I can write to. :)"));809 ("Please specify a tempdir which I can write to. :)"); 848 810 fatal_error("I cannot write to the tempdir you specified."); 849 811 } … … 853 815 retval++; 854 816 log_to_screen 855 ( _("Please don't specify a SAMBA or VFAT or NFS tmpdir."));817 ("Please don't specify a SAMBA or VFAT or NFS tmpdir."); 856 818 fatal_error("I cannot write to the tempdir you specified."); 857 819 } … … 901 863 i = which_boot_loader(tmp); 902 864 log_msg(3, "boot loader is %c, residing at %s", i, tmp); 903 printf( _("boot loader is %c, residing at %s\n"), i, tmp);865 printf("boot loader is %c, residing at %s\n", i, tmp); 904 866 finish(0); 905 867 } … … 909 871 retval++; 910 872 log_to_screen 911 ( _("Please install LZOP. You can't use '-L' until you do.\n"));873 ("Please install LZOP. You can't use '-L' until you do.\n"); 912 874 } 913 875 } … … 916 878 && 917 879 !run_program_and_log_output 918 (" egrep -i suse /etc/issue.net | egrep '9.0'| grep 64", TRUE)) {880 ("grep -i suse /etc/issue.net | grep 64", TRUE)) { 919 881 bkpinfo->make_cd_use_lilo = TRUE; 920 882 log_to_screen 921 ( _("Forcing you to use LILO. SuSE 9.0 (64-bit) has a broken mkfs.vfat binary."));883 ("Forcing you to use LILO. SuSE 9.0 (64-bit) has a broken mkfs.vfat binary."); 922 884 } 923 885 if (flag_set['o']) { … … 929 891 bkpinfo->make_cd_use_lilo = TRUE; 930 892 log_to_screen 931 ( _("Your kernel appears not to support vfat filesystems. I am therefore"));932 log_to_screen 933 ( _("using LILO instead of SYSLINUX as the CD/floppy's boot loader."));893 ("Your kernel appears not to support vfat filesystems. I am therefore"); 894 log_to_screen 895 ("using LILO instead of SYSLINUX as the CD/floppy's boot loader."); 934 896 } 935 897 if (run_program_and_log_output("which mkfs.vfat", FALSE)) { … … 937 899 #ifdef __IA32__ 938 900 log_to_screen 939 ( _("Your filesystem is missing 'mkfs.vfat', so I cannot use SYSLINUX as"));940 log_to_screen 941 ( _("your boot loader. I shall therefore use LILO instead."));901 ("Your filesystem is missing 'mkfs.vfat', so I cannot use SYSLINUX as"); 902 log_to_screen 903 ("your boot loader. I shall therefore use LILO instead."); 942 904 #endif 943 905 #ifdef __IA64__ 944 906 log_to_screen 945 ( _("Your filesystem is missing 'mkfs.vfat', so I cannot prepare the EFI"));946 log_to_screen( _("environment correctly. Please install it."));907 ("Your filesystem is missing 'mkfs.vfat', so I cannot prepare the EFI"); 908 log_to_screen("environment correctly. Please install it."); 947 909 fatal_error("Aborting"); 948 910 #endif … … 962 924 if (i == 0) { 963 925 retval++; 964 log_to_screen( _("Specify backup (-O), verify (-V) or both (-OV).\n"));926 log_to_screen("Specify backup (-O), verify (-V) or both (-OV).\n"); 965 927 } 966 928 … … 1016 978 if (flag_set[optopt]) { 1017 979 bad_switches = TRUE; 1018 sprintf(tmp, _("Switch -%c previously defined as %s\n"), opt,980 sprintf(tmp, "Switch -%c previously defined as %s\n", opt, 1019 981 flag_val[i]); 1020 982 log_to_screen(tmp); … … 1026 988 optarg[--len] = '\0'; 1027 989 log_to_screen 1028 ( _("Warning - param '%s' should not have trailing slash!"),990 ("Warning - param '%s' should not have trailing slash!", 1029 991 optarg); 1030 992 } … … 1033 995 && flag_val[opt][0] != '/') { 1034 996 sprintf(tmp, 1035 _("-%c flag --- must be absolute path --- '%s' isn't absolute"),997 "-%c flag --- must be absolute path --- '%s' isn't absolute", 1036 998 opt, flag_val[opt]); 1037 999 log_to_screen(tmp); … … 1046 1008 for (i = optind; i < argc; i++) { 1047 1009 bad_switches = TRUE; 1048 sprintf(tmp, _("Invalid arg -- %s\n"), argv[i]);1010 sprintf(tmp, "Invalid arg -- %s\n", argv[i]); 1049 1011 log_to_screen(tmp); 1050 1012 } … … 1079 1041 case SIGINT: 1080 1042 sprintf(tmp, "SIGINT"); 1081 strcpy(tmp2, _("You interrupted me :-)"));1043 strcpy(tmp2, "You interrupted me :-)"); 1082 1044 break; 1083 1045 case SIGKILL: 1084 1046 sprintf(tmp, "SIGKILL"); 1085 1047 strcpy(tmp2, 1086 _("I seriously have no clue how this signal even got to me. Something's wrong with your system."));1048 "I seriously have no clue how this signal even got to me. Something's wrong with your system."); 1087 1049 break; 1088 1050 case SIGTERM: 1089 1051 sprintf(tmp, "SIGTERM"); 1090 strcpy(tmp2, _("Got terminate signal"));1052 strcpy(tmp2, "Got terminate signal"); 1091 1053 break; 1092 1054 case SIGHUP: 1093 1055 sprintf(tmp, "SIGHUP"); 1094 strcpy(tmp2, _("Hangup on line"));1056 strcpy(tmp2, "Hangup on line"); 1095 1057 break; 1096 1058 case SIGSEGV: 1097 1059 sprintf(tmp, "SIGSEGV"); 1098 1060 strcpy(tmp2, 1099 _("Internal programming error. Please send a backtrace as well as your log."));1061 "Internal programming error. Please send a backtrace as well as your log."); 1100 1062 break; 1101 1063 case SIGPIPE: 1102 1064 sprintf(tmp, "SIGPIPE"); 1103 strcpy(tmp2, _("Pipe was broken"));1065 strcpy(tmp2, "Pipe was broken"); 1104 1066 break; 1105 1067 case SIGABRT: 1106 1068 sprintf(tmp, "SIGABRT"); 1107 1069 sprintf(tmp2, 1108 _("Abort - probably failed assertion. I'm sleeping for a few seconds so you can read the message."));1070 "Abort - probably failed assertion. I'm sleeping for a few seconds so you can read the message."); 1109 1071 break; 1110 1072 default: 1111 sprintf(tmp, _("(Unknown)"));1112 } 1113 1114 strcat(tmp, _(" signal received from OS"));1073 sprintf(tmp, "(Unknown)"); 1074 } 1075 1076 strcat(tmp, " signal received from OS"); 1115 1077 log_to_screen(tmp); 1116 1078 log_to_screen(tmp2); -
branches/stable/mondo/mondo/mondorestore/mondo-prep.c
r497 r541 239 239 // zero & reboot 240 240 log_to_screen 241 ( _("I am sorry for the inconvenience but I must ask you to reboot."));241 ("I am sorry for the inconvenience but I must ask you to reboot."); 242 242 log_to_screen 243 ( _("I need to reset the Master Boot Record; in order to be"));243 ("I need to reset the Master Boot Record; in order to be"); 244 244 log_to_screen 245 ( _("sure the kernel notices, I must reboot after doing it."));245 ("sure the kernel notices, I must reboot after doing it."); 246 246 log_to_screen("Please hit 'Enter' to reboot."); 247 247 for (lino = 0; lino < drivelist->entries; lino++) { … … 269 269 system("sync"); 270 270 popup_and_OK 271 ( _("I must now reboot. Please leave the boot media in the drive and repeat your actions - e.g. type 'nuke' - and it should work fine."));271 ("I must now reboot. Please leave the boot media in the drive and repeat your actions - e.g. type 'nuke' - and it should work fine."); 272 272 system("reboot"); 273 273 } … … 615 615 #ifdef __FreeBSD__ 616 616 log_to_screen 617 ( _("I don't know how to extrapolate the mountlist on FreeBSD. Sorry."));617 ("I don't know how to extrapolate the mountlist on FreeBSD. Sorry."); 618 618 return (1); 619 619 #endif … … 624 624 if (!does_file_exist("/etc/raidtab")) { 625 625 log_to_screen 626 ( _("Cannot find /etc/raidtab - cannot extrapolate the fdisk entries"));626 ("Cannot find /etc/raidtab - cannot extrapolate the fdisk entries"); 627 627 finish(1); 628 628 } … … 749 749 } 750 750 if (is_this_device_mounted(device)) { 751 sprintf(tmp, _("%s is mounted - cannot format it "), device);751 sprintf(tmp, "%s is mounted - cannot format it ", device); 752 752 log_to_screen(tmp); 753 753 paranoid_free(program); … … 761 761 if (!does_file_exist("/tmp/raidconf.txt")) { 762 762 log_to_screen 763 ( _("/tmp/raidconf.txt does not exist. I therefore cannot start Vinum."));763 ("/tmp/raidconf.txt does not exist. I therefore cannot start Vinum."); 764 764 } else { 765 765 int res; … … 769 769 if (res) { 770 770 log_to_screen 771 ( _("`vinum create /tmp/raidconf.txt' returned errors. Please fix them and re-run mondorestore."));771 ("`vinum create /tmp/raidconf.txt' returned errors. Please fix them and re-run mondorestore."); 772 772 finish(1); 773 773 } … … 780 780 char line[MAX_STR_LEN]; 781 781 sprintf(tmp, 782 _("Initializing Vinum device %s (this may take a *long* time)"),782 "Initializing Vinum device %s (this may take a *long* time)", 783 783 device); 784 784 log_to_screen(tmp); … … 823 823 } 824 824 #else 825 sprintf(tmp, _("Initializing RAID device %s"), device);825 sprintf(tmp, "Initializing RAID device %s", device); 826 826 log_to_screen(tmp); 827 827 828 828 // Shouldn't be necessary. 829 log_to_screen( _("Stopping %s"), device);829 log_to_screen("Stopping %s", device); 830 830 stop_raid_device(device); 831 831 system("sync"); … … 900 900 retval += res; 901 901 if (retval) { 902 strcat(tmp, _("...failed"));902 strcat(tmp, "...failed"); 903 903 } else { 904 strcat(tmp, _("...OK"));904 strcat(tmp, "...OK"); 905 905 } 906 906 … … 951 951 (interactively) ? "true" : "false"); 952 952 log_it(tmp); 953 mvaddstr_and_log_it(g_currentY, 0, _("Formatting partitions "));954 open_progress_form( _("Formatting partitions"),955 _("I am now formatting your hard disk partitions."),956 _("This may take up to five minutes."), "",953 mvaddstr_and_log_it(g_currentY, 0, "Formatting partitions "); 954 open_progress_form("Formatting partitions", 955 "I am now formatting your hard disk partitions.", 956 "This may take up to five minutes.", "", 957 957 mountlist->entries + 1); 958 958 … … 1001 1001 if (does_file_exist("/tmp/i-want-my-lvm")) { 1002 1002 wait_until_software_raids_are_prepped("/proc/mdstat", 10); 1003 log_to_screen( _("Configuring LVM"));1003 log_to_screen("Configuring LVM"); 1004 1004 if (!g_text_mode) { 1005 1005 newtSuspend(); … … 1092 1092 1093 1093 if (retval) { 1094 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1094 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1095 1095 log_to_screen 1096 ( _("Errors occurred during the formatting of your hard drives."));1096 ("Errors occurred during the formatting of your hard drives."); 1097 1097 } else { 1098 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1098 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1099 1099 } 1100 1100 … … 1107 1107 //123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 1108 1108 log_to_screen 1109 ( _("Partition table locked up %d times. At least one 'mkfs' (format) command"),1109 ("Partition table locked up %d times. At least one 'mkfs' (format) command", 1110 1110 g_partition_table_locked_up); 1111 1111 log_to_screen 1112 ( _("failed. I think these two events are related. Sometimes, fdisk's ioctl() call"));1112 ("failed. I think these two events are related. Sometimes, fdisk's ioctl() call"); 1113 1113 log_to_screen 1114 ( _("to refresh its copy of the partition table causes the kernel to lock the "));1114 ("to refresh its copy of the partition table causes the kernel to lock the "); 1115 1115 log_to_screen 1116 ( _("partition table. I believe this has just happened."));1116 ("partition table. I believe this has just happened."); 1117 1117 if (ask_me_yes_or_no 1118 ( _("Please choose 'yes' to reboot and try again; or 'no' to ignore this warning and continue.")))1118 ("Please choose 'yes' to reboot and try again; or 'no' to ignore this warning and continue.")) 1119 1119 { 1120 1120 system("sync"); … … 1125 1125 } else { 1126 1126 log_to_screen 1127 ( _("Partition table locked up %d time%c. However, disk formatting succeeded."),1127 ("Partition table locked up %d time%c. However, disk formatting succeeded.", 1128 1128 g_partition_table_locked_up, 1129 1129 (g_partition_table_locked_up == 1) ? '.' : 's'); … … 1528 1528 pout_to_fdisk = popen(tmp, "w"); 1529 1529 if (!pout_to_fdisk) { 1530 log_to_screen( _("Cannot call parted2fdisk to configure %s"), drivename);1530 log_to_screen("Cannot call parted2fdisk to configure %s", drivename); 1531 1531 paranoid_free(device_str); 1532 1532 paranoid_free(format); … … 1564 1564 if (system(command)) { 1565 1565 log_to_screen 1566 ( _("Warning! Unable to make the drive bootable."));1566 ("Warning! Unable to make the drive bootable."); 1567 1567 } 1568 1568 paranoid_free(device_str); … … 1614 1614 if (!file) { 1615 1615 sprintf(tmp, 1616 _("Warning - unable to open %s for wiping it's partition table"),1616 "Warning - unable to open %s for wiping it's partition table", 1617 1617 drivename); 1618 1618 log_to_screen(tmp); … … 1621 1621 for (i = 0; i < 512; i++) { 1622 1622 if (!write(file, "\0", 1)) { 1623 sprintf(tmp, _("Warning - unable to write to %s"),1623 sprintf(tmp, "Warning - unable to write to %s", 1624 1624 drivename); 1625 1625 log_to_screen(tmp); … … 1656 1656 if (current_devno == 5 && previous_devno == 4) { 1657 1657 log_to_screen 1658 ( _("You must leave at least one partition spare as the Extended partition."));1658 ("You must leave at least one partition spare as the Extended partition."); 1659 1659 paranoid_free(device_str); 1660 1660 paranoid_free(format); … … 1674 1674 if (system(tmp)) { 1675 1675 log_to_screen 1676 ( _("Warning! Unable to make the slice bootable."));1676 ("Warning! Unable to make the slice bootable."); 1677 1677 } 1678 1678 } … … 1702 1702 g_partition_table_locked_up++; 1703 1703 log_to_screen 1704 ( _("A flaw in the Linux kernel has locked the partition table."));1704 ("A flaw in the Linux kernel has locked the partition table."); 1705 1705 } 1706 1706 } … … 1775 1775 1776 1776 if (is_this_device_mounted(partition_name)) { 1777 sprintf(tmp, _("%s is mounted, and should not be partitioned"),1777 sprintf(tmp, "%s is mounted, and should not be partitioned", 1778 1778 partition_name); 1779 1779 log_to_screen(tmp); … … 1812 1812 if (prev_partno >= 4) { 1813 1813 log_to_screen 1814 ( _("You need to leave at least one partition free, for 'extended/logical'"));1814 ("You need to leave at least one partition free, for 'extended/logical'"); 1815 1815 paranoid_free(program); 1816 1816 paranoid_free(partition_name); … … 2002 2002 */ 2003 2003 2004 open_progress_form( _("Partitioning devices"),2005 _("I am now going to partition all your drives."),2006 _("This should not take more than five minutes."), "",2004 open_progress_form("Partitioning devices", 2005 "I am now going to partition all your drives.", 2006 "This should not take more than five minutes.", "", 2007 2007 mountlist->entries); 2008 2008 … … 2016 2016 close_progress_form(); 2017 2017 if (retval) { 2018 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));2018 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 2019 2019 log_to_screen 2020 ( _("Errors occurred during the partitioning of your hard drives."));2020 ("Errors occurred during the partitioning of your hard drives."); 2021 2021 } else { 2022 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2022 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2023 2023 paranoid_system("rm -f /tmp/fdisk*.log 2> /dev/null"); 2024 2024 } … … 2532 2532 return; 2533 2533 } 2534 sprintf(tmp, _("Expanding entries to suit drive %s (%ld MB)"), drive_name,2534 sprintf(tmp, "Expanding entries to suit drive %s (%ld MB)", drive_name, 2535 2535 current_size_of_drive); 2536 2536 log_to_screen(tmp); … … 2551 2551 2552 2552 if (original_size_of_drive <= 0) { 2553 sprintf(tmp, _("Cannot resize %s's entries. Drive not found."),2553 sprintf(tmp, "Cannot resize %s's entries. Drive not found.", 2554 2554 drive_name); 2555 2555 log_to_screen(tmp); … … 2581 2581 newsizL = (long) new_size; 2582 2582 } 2583 sprintf(tmp, _("Changing %s from %lld KB to %ld KB"),2583 sprintf(tmp, "Changing %s from %lld KB to %ld KB", 2584 2584 drivemntlist->el[partno]->device, 2585 2585 drivemntlist->el[partno]->size, newsizL); … … 2588 2588 } 2589 2589 final_size = get_phys_size_of_drive(drive_name); 2590 sprintf(tmp, _("final_size = %ld MB"), final_size);2590 sprintf(tmp, "final_size = %ld MB", final_size); 2591 2591 paranoid_free(tmp); 2592 2592 log_to_screen(tmp); … … 2629 2629 device); 2630 2630 } 2631 log_to_screen( _("Mountlist adjusted to suit current hard drive(s)"));2631 log_to_screen("Mountlist adjusted to suit current hard drive(s)"); 2632 2632 paranoid_free(drivelist); 2633 2633 } -
branches/stable/mondo/mondo/mondorestore/mondo-restore.c
r497 r541 505 505 * The message to display if we detect that the user is using a Compaq Proliant. 506 506 */ 507 #define COMPAQ_PROLIANTS_SUCK _("Partition and format your disk using Compaq's disaster recovery CD. After you've done that, please reboot with your Mondo CD/floppy in Interactive Mode.")507 #define COMPAQ_PROLIANTS_SUCK "Partition and format your disk using Compaq's disaster recovery CD. After you've done that, please reboot with your Mondo CD/floppy in Interactive Mode." 508 508 509 509 … … 535 535 if (!does_file_exist(g_mountlist_fname)) { 536 536 log_to_screen(g_mountlist_fname); 537 log_to_screen( _("does not exist"));537 log_to_screen("does not exist"); 538 538 return (1); 539 539 } … … 543 543 if (retval) { 544 544 log_to_screen 545 ( _("Warning - load_raidtab_into_raidlist returned an error"));545 ("Warning - load_raidtab_into_raidlist returned an error"); 546 546 } 547 547 res = edit_mountlist(g_mountlist_fname, mountlist, raidlist); … … 553 553 save_raidlist_to_raidtab(raidlist, RAIDTAB_FNAME); 554 554 555 log_to_screen( _("I have finished editing the mountlist for you."));555 log_to_screen("I have finished editing the mountlist for you."); 556 556 557 557 return (retval); … … 602 602 popup_and_OK(COMPAQ_PROLIANTS_SUCK); 603 603 if (ask_me_yes_or_no 604 ( _("Would you like to reboot and use your Compaq CD to prep your hard drive?")))604 ("Would you like to reboot and use your Compaq CD to prep your hard drive?")) 605 605 { 606 606 fatal_error 607 ( _("Aborting. Please reboot and prep your hard drive with your Compaq CD."));607 ("Aborting. Please reboot and prep your hard drive with your Compaq CD."); 608 608 } 609 609 } … … 642 642 interactively_obtain_media_parameters_from_user(bkpinfo, FALSE); 643 643 } else { 644 popup_and_OK( _("No restoring or comparing will take place today."));644 popup_and_OK("No restoring or comparing will take place today."); 645 645 if (is_this_device_mounted("/mnt/cdrom")) { 646 646 run_program_and_log_output("umount /mnt/cdrom", FALSE); … … 774 774 if (g_text_mode) { 775 775 if (!ask_me_yes_or_no 776 ( _("Interactive Mode + textonly = experimental! Proceed anyway?")))776 ("Interactive Mode + textonly = experimental! Proceed anyway?")) 777 777 { 778 778 fatal_error("Wise move."); … … 815 815 save_mountlist_to_disk(mountlist, g_mountlist_fname); 816 816 save_raidlist_to_raidtab(raidlist, RAIDTAB_FNAME); 817 mvaddstr_and_log_it(1, 30, _("Restoring Interactively"));817 mvaddstr_and_log_it(1, 30, "Restoring Interactively"); 818 818 if (bkpinfo->differential) { 819 log_to_screen( _("Because this is a differential backup, disk"));819 log_to_screen("Because this is a differential backup, disk"); 820 820 log_to_screen 821 ( _(" partitioning and formatting will not take place."));821 (" partitioning and formatting will not take place."); 822 822 done = TRUE; 823 823 } else { 824 824 if (ask_me_yes_or_no 825 ( _("Do you want to erase and partition your hard drives?"))) {825 ("Do you want to erase and partition your hard drives?")) { 826 826 if (partition_table_contains_Compaq_diagnostic_partition 827 827 (mountlist)) { … … 834 834 if (ptn_errs) { 835 835 log_to_screen 836 ( _("Warning. Errors occurred during disk partitioning."));836 ("Warning. Errors occurred during disk partitioning."); 837 837 } 838 838 … … 840 840 if (!fmt_errs) { 841 841 log_to_screen 842 ( _("Errors during disk partitioning were handled OK."));842 ("Errors during disk partitioning were handled OK."); 843 843 log_to_screen 844 ( _("Partitions were formatted OK despite those errors."));844 ("Partitions were formatted OK despite those errors."); 845 845 ptn_errs = 0; 846 846 } … … 852 852 } else { 853 853 mvaddstr_and_log_it(g_currentY++, 0, 854 _("User opted not to partition the devices"));854 "User opted not to partition the devices"); 855 855 if (ask_me_yes_or_no 856 ( _("Do you want to format your hard drives?"))) {856 ("Do you want to format your hard drives?")) { 857 857 fmt_errs = format_everything(mountlist, TRUE); 858 858 if (!fmt_errs) { … … 867 867 mvaddstr_and_log_it(g_currentY++, 868 868 0, 869 _("Errors occurred. Please repartition and format drives manually."));869 "Errors occurred. Please repartition and format drives manually."); 870 870 done = FALSE; 871 871 } … … 873 873 mvaddstr_and_log_it(g_currentY++, 874 874 0, 875 _("Errors occurred during partitioning. Formatting, however, went OK."));875 "Errors occurred during partitioning. Formatting, however, went OK."); 876 876 done = TRUE; 877 877 } 878 878 if (!done) { 879 if (!ask_me_yes_or_no( _("Re-edit the mountlist?"))) {879 if (!ask_me_yes_or_no("Re-edit the mountlist?")) { 880 880 retval++; 881 881 goto end_of_func; … … 893 893 /* restore */ 894 894 if ((restore_all = 895 ask_me_yes_or_no( _("Do you want me to restore all of your data?"))))895 ask_me_yes_or_no("Do you want me to restore all of your data?"))) 896 896 { 897 897 log_msg(1, "Restoring all data"); … … 900 900 if ((restore_all = 901 901 ask_me_yes_or_no 902 ( _("Do you want me to restore _some_ of your data?")))) {902 ("Do you want me to restore _some_ of your data?"))) { 903 903 strcpy(old_restpath, bkpinfo->restore_path); 904 904 for (done = FALSE; !done;) { … … 913 913 // (NB: %s is where your filesystem is mounted now, by default)", MNT_RESTORING); 914 914 if (popup_and_get_string 915 ( _("Restore path"), _("Restore files to where?"), tmp,915 ("Restore path", "Restore files to where?", tmp, 916 916 MAX_STR_LEN / 4)) { 917 917 if (!strcmp(tmp, "/")) { 918 if (!ask_me_yes_or_no( _("Are you sure?"))) {918 if (!ask_me_yes_or_no("Are you sure?")) { 919 919 goto gotos_suck; 920 920 } … … 930 930 } 931 931 if (!ask_me_yes_or_no 932 ( _("Restore another subset of your backup?"))) {932 ("Restore another subset of your backup?")) { 933 933 done = TRUE; 934 934 } … … 941 941 mvaddstr_and_log_it(g_currentY++, 942 942 0, 943 _("User opted not to restore any data. "));943 "User opted not to restore any data. "); 944 944 } 945 945 if (retval) { 946 946 mvaddstr_and_log_it(g_currentY++, 947 947 0, 948 _("Errors occurred during the restore phase. "));949 } 950 951 if (ask_me_yes_or_no( _("Initialize the boot loader?"))) {948 "Errors occurred during the restore phase. "); 949 } 950 951 if (ask_me_yes_or_no("Initialize the boot loader?")) { 952 952 run_boot_loader(TRUE); 953 953 } else { 954 954 mvaddstr_and_log_it(g_currentY++, 955 955 0, 956 _("User opted not to initialize the boot loader."));956 "User opted not to initialize the boot loader."); 957 957 } 958 958 … … 963 963 /* if (restore_some || restore_all || */ 964 964 if (ask_me_yes_or_no 965 ( _("Label your ext2 and ext3 partitions if necessary?"))) {965 ("Label your ext2 and ext3 partitions if necessary?")) { 966 966 mvaddstr_and_log_it(g_currentY, 0, 967 _("Using e2label to label your ext2,3 partitions"));967 "Using e2label to label your ext2,3 partitions"); 968 968 if (does_file_exist("/tmp/fstab.new")) { 969 969 strcpy(fstab_fname, "/tmp/fstab.new"); … … 978 978 if (res) { 979 979 log_to_screen 980 ( _("label-partitions-as-necessary returned an error"));981 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));980 ("label-partitions-as-necessary returned an error"); 981 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 982 982 } else { 983 983 mvaddstr_and_log_it(g_currentY++, 74, "Done."); … … 990 990 mvaddstr_and_log_it(g_currentY++, 991 991 0, 992 _("Warning - errors occurred during the restore phase."));992 "Warning - errors occurred during the restore phase."); 993 993 } 994 994 end_of_func: … … 1042 1042 retval += compare_mode(bkpinfo, mountlist, raidlist); 1043 1043 } else { 1044 log_to_screen( _("OK, I shan't restore/compare any files."));1044 log_to_screen("OK, I shan't restore/compare any files."); 1045 1045 } 1046 1046 } … … 1052 1052 if (system("umount /tmp/isodir 2> /dev/null")) { 1053 1053 log_to_screen 1054 ( _("WARNING - unable to unmount device where the ISO files are stored."));1054 ("WARNING - unable to unmount device where the ISO files are stored."); 1055 1055 } 1056 1056 // } … … 1113 1113 if (!evaluate_mountlist(mountlist, tmpA, tmpB, tmpC)) { 1114 1114 sprintf(tmp, 1115 _("Mountlist analyzed. Result: \"%s %s %s\" Switch to Interactive Mode?"),1115 "Mountlist analyzed. Result: \"%s %s %s\" Switch to Interactive Mode?", 1116 1116 tmpA, tmpB, tmpC); 1117 1117 if (ask_me_yes_or_no(tmp)) { … … 1123 1123 } 1124 1124 save_mountlist_to_disk(mountlist, g_mountlist_fname); 1125 mvaddstr_and_log_it(1, 30, _("Restoring Automatically"));1125 mvaddstr_and_log_it(1, 30, "Restoring Automatically"); 1126 1126 if (bkpinfo->differential) { 1127 log_to_screen( _("Because this is a differential backup, disk"));1128 log_to_screen( _("partitioning and formatting will not take place."));1127 log_to_screen("Because this is a differential backup, disk"); 1128 log_to_screen("partitioning and formatting will not take place."); 1129 1129 res = 0; 1130 1130 } else { … … 1152 1152 if (res) { 1153 1153 log_to_screen 1154 ( _("Warning. Errors occurred during partitioning."));1154 ("Warning. Errors occurred during partitioning."); 1155 1155 res = 0; 1156 1156 } … … 1158 1158 retval += res; 1159 1159 if (!res) { 1160 log_to_screen( _("Preparing to format your disk(s)"));1160 log_to_screen("Preparing to format your disk(s)"); 1161 1161 sleep(1); 1162 1162 system("sync"); 1163 log_to_screen( _("Please wait. This may take a few minutes."));1163 log_to_screen("Please wait. This may take a few minutes."); 1164 1164 res += format_everything(mountlist, FALSE); 1165 1165 } … … 1171 1171 mvaddstr_and_log_it(g_currentY++, 1172 1172 0, 1173 _("Failed to partition and/or format your hard drives."));1174 1175 if (ask_me_yes_or_no( _("Try in interactive mode instead?"))) {1173 "Failed to partition and/or format your hard drives."); 1174 1175 if (ask_me_yes_or_no("Try in interactive mode instead?")) { 1176 1176 retval = interactive_mode(bkpinfo, mountlist, raidlist); 1177 1177 goto after_the_nuke; 1178 1178 } else 1179 1179 if (!ask_me_yes_or_no 1180 ( _("Would you like to try to proceed anyway?"))) {1180 ("Would you like to try to proceed anyway?")) { 1181 1181 return (retval); 1182 1182 } … … 1186 1186 unmount_all_devices(mountlist); 1187 1187 log_to_screen 1188 ( _("Unable to mount all partitions. Sorry, I cannot proceed."));1188 ("Unable to mount all partitions. Sorry, I cannot proceed."); 1189 1189 return (retval); 1190 1190 } … … 1202 1202 mvaddstr_and_log_it(g_currentY, 1203 1203 0, 1204 _("Using e2label to label your ext2,3 partitions"));1204 "Using e2label to label your ext2,3 partitions"); 1205 1205 1206 1206 sprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab", … … 1208 1208 res = run_program_and_log_output(tmp, TRUE); 1209 1209 if (res) { 1210 log_to_screen( _("label-partitions-as-necessary returned an error"));1211 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1210 log_to_screen("label-partitions-as-necessary returned an error"); 1211 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1212 1212 } else { 1213 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1213 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1214 1214 } 1215 1215 retval += res; … … 1217 1217 after_the_nuke: 1218 1218 if (retval) { 1219 log_to_screen( _("Errors occurred during the nuke phase."));1219 log_to_screen("Errors occurred during the nuke phase."); 1220 1220 } else if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "RESTORE")) // Bruno's thing 1221 1221 { 1222 1222 log_to_screen 1223 ( _("PC was restored successfully. Thank you for using Mondo Rescue."));1223 ("PC was restored successfully. Thank you for using Mondo Rescue."); 1224 1224 log_to_screen 1225 ( _("Please visit our website at http://www.mondorescue.org for more information."));1225 ("Please visit our website at http://www.mondorescue.org for more information."); 1226 1226 } else { 1227 strcpy(tmp, _(" Mondo has restored your system. Please remove the backup media and reboot.\n\nPlease visit our website at http://www.mondorescue.org for more information."));1227 strcpy(tmp," Mondo has restored your system. Please remove the backup media and reboot.\n\nPlease visit our website at http://www.mondorescue.org for more information."); 1228 1228 if (strstr(call_program_and_get_last_line_of_output("cat /proc/cmdline"), "restore") == NULL) { 1229 1229 popup_and_OK(tmp); 1230 1230 } 1231 1231 log_to_screen 1232 ( _("Mondo has restored your system. Please remove the backup media and reboot."));1232 ("Mondo has restored your system. Please remove the backup media and reboot."); 1233 1233 log_to_screen 1234 ( _("Please visit our website at http://www.mondorescue.org for more information."));1234 ("Please visit our website at http://www.mondorescue.org for more information."); 1235 1235 } 1236 1236 g_I_have_just_nuked = TRUE; … … 1281 1281 if (!g_restoring_live_from_cd) { 1282 1282 popup_and_OK 1283 ( _("Please insert tape/CD/boot floppy, then hit 'OK' to continue."));1283 ("Please insert tape/CD/boot floppy, then hit 'OK' to continue."); 1284 1284 sleep(1); 1285 1285 } … … 1293 1293 log_msg(2, "bkpinfo->isodir = %s", bkpinfo->isodir); 1294 1294 1295 open_evalcall_form( _("Thinking..."));1295 open_evalcall_form("Thinking..."); 1296 1296 1297 1297 get_cfg_file_from_archive_or_bust(bkpinfo); … … 1306 1306 save_filelist(filelist, "/tmp/selected-files.txt"); 1307 1307 strcpy(old_restpath, bkpinfo->restore_path); 1308 if (popup_and_get_string( _("Restore path"),1309 _("Restore files to where? )"),1308 if (popup_and_get_string("Restore path", 1309 "Restore files to where? )", 1310 1310 bkpinfo->restore_path, MAX_STR_LEN / 4)) { 1311 1311 iamhere("Restoring everything"); … … 1403 1403 1404 1404 if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) { 1405 log_to_screen( _("Cannot even open bigfile's info file"));1405 log_to_screen("Cannot even open bigfile's info file"); 1406 1406 return (1); 1407 1407 } … … 1516 1516 log_msg(3, "file_to_openout = %s", file_to_openout); 1517 1517 if (!(fout = fopen(file_to_openout, "w"))) { 1518 log_to_screen( _("Cannot openout outfile_fname - hard disk full?"));1518 log_to_screen("Cannot openout outfile_fname - hard disk full?"); 1519 1519 return (1); 1520 1520 } … … 1539 1539 g_current_media_number, sliceno); 1540 1540 log_msg(2, tmp); 1541 sprintf(tmp, _("Restoring from %s #%d"),1541 sprintf(tmp, "Restoring from %s #%d", 1542 1542 media_descriptor_string(bkpinfo->backup_media_type), 1543 1543 g_current_media_number); 1544 1544 log_to_screen(tmp); 1545 1545 insist_on_this_cd_number(bkpinfo, g_current_media_number); 1546 log_to_screen( _("Continuing to restore."));1546 log_to_screen("Continuing to restore."); 1547 1547 } else { 1548 1548 strcpy(tmp, … … 1573 1573 strcpy(suffix, ""); 1574 1574 } else { 1575 log_to_screen( _("OK, that's pretty fsck0red..."));1575 log_to_screen("OK, that's pretty fsck0red..."); 1576 1576 return (1); 1577 1577 } … … 1977 1977 filelist_name); 1978 1978 log_msg(2, 1979 "This is a bit silly (ask dev-teamto fix mondo-makefilelist, please)");1979 "This is a bit silly (ask Hugo to fix mondo-makefilelist, please)"); 1980 1980 log_msg(2, 1981 1981 "but it's non-critical. It's cosmetic. Don't worry about it."); … … 2031 2031 if (run_program_and_log_output(tmp, FALSE)) { 2032 2032 log_to_screen 2033 ( _("(compare_a_tarball) Compression program not found - oh no!"));2033 ("(compare_a_tarball) Compression program not found - oh no!"); 2034 2034 paranoid_MR_finish(1); 2035 2035 } … … 2054 2054 if (filelist_subset_fname[0] != '\0') { 2055 2055 sprintf(command, 2056 "afio -i -M 8m -b %ld -c %ld %s -w '%s'%s",2056 "afio -i -M 8m -b %ld -c %ld %s -w %s %s", 2057 2057 TAPE_BLOCK_SIZE, 2058 2058 BUFSIZE, executable, filelist_subset_fname, … … 2089 2089 if (res) { 2090 2090 log_to_screen 2091 ( _("Errors occurred while setting extended attributes"));2091 ("Errors occurred while setting extended attributes"); 2092 2092 } else { 2093 2093 log_msg(1, "I set xattr OK"); … … 2100 2100 if (res) { 2101 2101 log_to_screen 2102 ( _("Errors occurred while setting access control lists"));2102 ("Errors occurred while setting access control lists"); 2103 2103 } else { 2104 2104 log_msg(1, "I set ACL OK"); … … 2117 2117 if (does_file_exist("/PAUSE")) { 2118 2118 popup_and_OK 2119 ( _("Press ENTER to go on. Delete /PAUSE to stop these pauses."));2119 ("Press ENTER to go on. Delete /PAUSE to stop these pauses."); 2120 2120 } 2121 2121 unlink(filelist_subset_fname); … … 2314 2314 2315 2315 if (does_file_exist("/PAUSE") && current_tarball_number >= 50) { 2316 log_to_screen( _("Paused after set %ld"), current_tarball_number);2317 popup_and_OK( _("Pausing. Press ENTER to continue."));2316 log_to_screen("Paused after set %ld", current_tarball_number); 2317 popup_and_OK("Pausing. Press ENTER to continue."); 2318 2318 } 2319 2319 … … 2378 2378 read_cfg_var(g_mondo_cfg_file, "total-slices", tmp); 2379 2379 total_slices = atol(tmp); 2380 sprintf(tmp, _("Reassembling large files "));2380 sprintf(tmp, "Reassembling large files "); 2381 2381 mvaddstr_and_log_it(g_currentY, 0, tmp); 2382 2382 if (length_of_file(BIGGIELIST) < 6) { … … 2394 2394 log_msg(2, tmp); 2395 2395 2396 open_progress_form( _("Reassembling large files"),2397 _("I am now reassembling all the large files."),2398 _("Please wait. This may take some time."),2396 open_progress_form("Reassembling large files", 2397 "I am now reassembling all the large files.", 2398 "Please wait. This may take some time.", 2399 2399 "", total_slices); 2400 2400 for (bigfileno = 0, finished = FALSE; !finished;) { … … 2417 2417 insist_on_this_cd_number(bkpinfo, 2418 2418 ++g_current_media_number); 2419 sprintf(tmp, _("Restoring from %s #%d"),2419 sprintf(tmp, "Restoring from %s #%d", 2420 2420 media_descriptor_string(bkpinfo-> 2421 2421 backup_media_type), … … 2431 2431 } else { 2432 2432 just_changed_cds = FALSE; 2433 sprintf(tmp, _("Restoring big file %ld"), bigfileno + 1);2433 sprintf(tmp, "Restoring big file %ld", bigfileno + 1); 2434 2434 update_progress_form(tmp); 2435 2435 res = … … 2460 2460 if (does_file_exist("/PAUSE")) { 2461 2461 popup_and_OK 2462 ( _("Press ENTER to go on. Delete /PAUSE to stop these pauses."));2462 ("Press ENTER to go on. Delete /PAUSE to stop these pauses."); 2463 2463 } 2464 2464 close_progress_form(); 2465 2465 if (retval) { 2466 mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));2466 mvaddstr_and_log_it(g_currentY++, 74, "Errors."); 2467 2467 } else { 2468 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2468 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2469 2469 } 2470 2470 paranoid_free(xattr_fname); … … 2514 2514 assert(bkpinfo != NULL); 2515 2515 2516 mvaddstr_and_log_it(g_currentY, 0, _("Restoring from archives"));2516 mvaddstr_and_log_it(g_currentY, 0, "Restoring from archives"); 2517 2517 log_msg(2, 2518 2518 "Insisting on 1st CD, so that I can have a look at LAST-FILELIST-NUMBER"); … … 2524 2524 read_cfg_var(g_mondo_cfg_file, "last-filelist-number", tmp); 2525 2525 max_val = atol(tmp) + 1; 2526 sprintf(progress_str, _("Restoring from %s #%d"),2526 sprintf(progress_str, "Restoring from %s #%d", 2527 2527 media_descriptor_string(bkpinfo->backup_media_type), 2528 2528 g_current_media_number); 2529 2529 log_to_screen(progress_str); 2530 open_progress_form( _("Restoring from archives"),2531 _("Restoring data from the archives."),2532 _("Please wait. This may take some time."),2530 open_progress_form("Restoring from archives", 2531 "Restoring data from the archives.", 2532 "Please wait. This may take some time.", 2533 2533 progress_str, max_val); 2534 2534 for (;;) { … … 2556 2556 if (current_tarball_number == 0) { 2557 2557 log_to_screen 2558 ( _("No tarballs. Strange. Maybe you only backed up freakin' big files?"));2558 ("No tarballs. Strange. Maybe you only backed up freakin' big files?"); 2559 2559 return (0); 2560 2560 } … … 2566 2566 } 2567 2567 g_current_media_number++; 2568 sprintf(progress_str, _("Restoring from %s #%d"),2568 sprintf(progress_str, "Restoring from %s #%d", 2569 2569 media_descriptor_string(bkpinfo->backup_media_type), 2570 2570 g_current_media_number); 2571 2571 log_to_screen(progress_str); 2572 2572 } else { 2573 sprintf(progress_str, _("Restoring from fileset #%ld on %s #%d"),2573 sprintf(progress_str, "Restoring from fileset #%ld on %s #%d", 2574 2574 current_tarball_number, 2575 2575 media_descriptor_string(bkpinfo->backup_media_type), … … 2583 2583 filelist); 2584 2584 } 2585 sprintf(tmp, _("%s #%d, fileset #%ld - restore "),2585 sprintf(tmp, "%s #%d, fileset #%ld - restore ", 2586 2586 media_descriptor_string(bkpinfo->backup_media_type), 2587 2587 g_current_media_number, current_tarball_number); 2588 2588 if (res) { 2589 strcat(tmp, _("reported errors"));2589 strcat(tmp, "reported errors"); 2590 2590 } else if (attempts > 1) { 2591 strcat(tmp, _("succeeded"));2591 strcat(tmp, "succeeded"); 2592 2592 } else { 2593 strcat(tmp, _("succeeded"));2593 strcat(tmp, "succeeded"); 2594 2594 } 2595 2595 if (attempts > 1) { 2596 sprintf(tmp + strlen(tmp), _(" (%d attempts) - review logs"),2596 sprintf(tmp + strlen(tmp), " (%d attempts) - review logs", 2597 2597 attempts); 2598 2598 } … … 2609 2609 close_progress_form(); 2610 2610 if (retval) { 2611 mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));2611 mvaddstr_and_log_it(g_currentY++, 74, "Errors."); 2612 2612 } else { 2613 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2613 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2614 2614 } 2615 2615 paranoid_free(tmp); … … 2694 2694 noof_biggiefiles); 2695 2695 log_msg(2, tmp); 2696 open_progress_form( _("Reassembling large files"),2697 _("I am now reassembling all the large files."),2698 _("Please wait. This may take some time."),2696 open_progress_form("Reassembling large files", 2697 "I am now reassembling all the large files.", 2698 "Please wait. This may take some time.", 2699 2699 "", total_slices); 2700 2700 … … 2716 2716 p++; 2717 2717 } 2718 sprintf(tmp, _("Restoring big file %ld (%lld K)"),2718 sprintf(tmp, "Restoring big file %ld (%lld K)", 2719 2719 current_bigfile_number + 1, biggie_size / 1024); 2720 2720 update_progress_form(tmp); … … 2767 2767 if (does_file_exist("/PAUSE")) { 2768 2768 popup_and_OK 2769 ( _("Press ENTER to go on. Delete /PAUSE to stop these pauses."));2769 ("Press ENTER to go on. Delete /PAUSE to stop these pauses."); 2770 2770 } 2771 2771 2772 2772 close_progress_form(); 2773 2773 if (retval) { 2774 mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));2774 mvaddstr_and_log_it(g_currentY++, 74, "Errors."); 2775 2775 } else { 2776 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2776 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2777 2777 } 2778 2778 paranoid_free(biggies_whose_EXATs_we_should_set); … … 2830 2830 malloc_string(xattr_fname); 2831 2831 malloc_string(acl_fname); 2832 mvaddstr_and_log_it(g_currentY, 0, _("Restoring from archives"));2832 mvaddstr_and_log_it(g_currentY, 0, "Restoring from archives"); 2833 2833 read_cfg_var(g_mondo_cfg_file, "last-filelist-number", tmp); 2834 2834 max_val = atol(tmp) + 1; … … 2838 2838 run_program_and_log_output("pwd", 5); 2839 2839 2840 sprintf(progress_str, _("Restoring from media #%d"),2840 sprintf(progress_str, "Restoring from media #%d", 2841 2841 g_current_media_number); 2842 2842 log_to_screen(progress_str); 2843 open_progress_form( _("Restoring from archives"),2844 _("Restoring data from the archives."),2845 _("Please wait. This may take some time."),2843 open_progress_form("Restoring from archives", 2844 "Restoring data from the archives.", 2845 "Please wait. This may take some time.", 2846 2846 progress_str, max_val); 2847 2847 … … 2877 2877 } 2878 2878 sprintf(tmp, 2879 _("Restoring from fileset #%ld (name=%s, size=%ld K)"),2879 "Restoring from fileset #%ld (name=%s, size=%ld K)", 2880 2880 current_afioball_number, tmp_fname, (long) tmp_size >> 10); 2881 2881 res = … … 2886 2886 retval += res; 2887 2887 if (res) { 2888 sprintf(tmp, _("Fileset %ld - errors occurred"),2888 sprintf(tmp, "Fileset %ld - errors occurred", 2889 2889 current_afioball_number); 2890 2890 log_to_screen(tmp); … … 2898 2898 current_afioball_number++; 2899 2899 g_current_progress++; 2900 sprintf(progress_str, _("Restoring from fileset #%ld on %s #%d"),2900 sprintf(progress_str, "Restoring from fileset #%ld on %s #%d", 2901 2901 current_afioball_number, 2902 2902 media_descriptor_string(bkpinfo->backup_media_type), … … 2910 2910 close_progress_form(); 2911 2911 if (retval) { 2912 mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));2912 mvaddstr_and_log_it(g_currentY++, 74, "Errors."); 2913 2913 } else { 2914 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2914 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2915 2915 } 2916 2916 paranoid_free(tmp); … … 2963 2963 if (!find_home_of_exe("petris") && !g_text_mode) { 2964 2964 newtDrawRootText(0, g_noof_rows - 2, 2965 _("Press ALT-<left cursor> twice to play Petris :-) "));2965 "Press ALT-<left cursor> twice to play Petris :-) "); 2966 2966 newtRefresh(); 2967 2967 } 2968 mvaddstr_and_log_it(g_currentY, 0, _("Preparing to read your archives"));2968 mvaddstr_and_log_it(g_currentY, 0, "Preparing to read your archives"); 2969 2969 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2970 2970 mount_cdrom(bkpinfo); 2971 2971 mvaddstr_and_log_it(g_currentY++, 0, 2972 _("Restoring OS and data from streaming media"));2972 "Restoring OS and data from streaming media"); 2973 2973 if (bkpinfo->backup_media_type == cdstream) { 2974 2974 openin_cdstream(bkpinfo); … … 2987 2987 } else { 2988 2988 mvaddstr_and_log_it(g_currentY++, 0, 2989 _("Restoring OS and data from CD "));2989 "Restoring OS and data from CD "); 2990 2990 mount_cdrom(bkpinfo); 2991 2991 resA = restore_all_tarballs_from_CD(bkpinfo, filelist); … … 2994 2994 chdir(cwd); 2995 2995 if (resA + resB) { 2996 log_to_screen( _("Errors occurred while data was being restored."));2996 log_to_screen("Errors occurred while data was being restored."); 2997 2997 } 2998 2998 if (length_of_file("/etc/raidtab") > 0) { … … 3105 3105 retval++; 3106 3106 log_to_screen 3107 ( _("Error(s) occurred while processing filelist and wildcard"));3107 ("Error(s) occurred while processing filelist and wildcard"); 3108 3108 } 3109 3109 iamhere("FIXME"); … … 3200 3200 * * 3201 3201 **************************************************************************/ 3202 3203 #ifdef ENABLE_NLS3204 setlocale(LC_ALL, "");3205 (void) textdomain("mondo");3206 #endif3207 3208 3202 if (getuid() != 0) { 3209 fprintf(stderr, _("Please run as root.\n"));3203 fprintf(stderr, "Please run as root.\r\n"); 3210 3204 exit(127); 3211 3205 } … … 3351 3345 strcpy(bkpinfo->restore_path, "/tmp/TESTING"); 3352 3346 bkpinfo->backup_media_type = dvd; 3353 open_progress_form( _("Reassembling /dev/hda1"),3354 _("Shark is a bit of a silly person."),3355 _("Please wait. This may take some time."),3347 open_progress_form("Reassembling /dev/hda1", 3348 "Shark is a bit of a silly person.", 3349 "Please wait. This may take some time.", 3356 3350 "", 1999); 3357 3351 system("rm -Rf /tmp/*pih*"); … … 3429 3423 retval = run_grub(FALSE, "/dev/hda"); 3430 3424 if (retval) { 3431 log_to_screen( _("Failed to write Master Boot Record"));3425 log_to_screen("Failed to write Master Boot Record"); 3432 3426 } 3433 3427 paranoid_MR_finish(0); … … 3440 3434 if (argc != 1) { 3441 3435 popup_and_OK 3442 ( _("Live mode doesn't support command-line parameters yet."));3436 ("Live mode doesn't support command-line parameters yet."); 3443 3437 paranoid_MR_finish(1); 3444 3438 // return(1); … … 3472 3466 log_msg(2, "FYI, MOUNTLIST_FNAME = %s ", g_mountlist_fname); 3473 3467 if (argc == 3 && strcmp(argv[1], "--monitas-memorex") == 0) { 3474 log_to_screen( _("Uh, that hasn't been implemented yet."));3468 log_to_screen("Uh, that hasn't been implemented yet."); 3475 3469 paranoid_MR_finish(1); 3476 3470 } … … 3501 3495 if (retval) { 3502 3496 log_to_screen 3503 ( _("Warning - load_raidtab_into_raidlist returned an error"));3497 ("Warning - load_raidtab_into_raidlist returned an error"); 3504 3498 } 3505 3499 … … 3555 3549 } 3556 3550 if (retval) { 3557 log_to_screen( _("Failed to write Master Boot Record"));3551 log_to_screen("Failed to write Master Boot Record"); 3558 3552 } 3559 3553 } else if (argc == 2 && strcmp(argv[1], "--isonuke") == 0) { … … 3561 3555 retval = iso_mode(bkpinfo, mountlist, raidlist, TRUE); 3562 3556 } else if (argc != 1) { 3563 log_to_screen( _("Invalid paremeters"));3557 log_to_screen("Invalid paremeters"); 3564 3558 paranoid_MR_finish(1); 3565 3559 } else { … … 3573 3567 if (does_file_exist("/tmp/changed.files")) { 3574 3568 log_to_screen 3575 ( _("See /tmp/changed.files for list of files that have changed."));3569 ("See /tmp/changed.files for list of files that have changed."); 3576 3570 } 3577 3571 mvaddstr_and_log_it(g_currentY++, 3578 3572 0, 3579 _("Run complete. Errors were reported. Please review the logfile."));3573 "Run complete. Errors were reported. Please review the logfile."); 3580 3574 } else { 3581 3575 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 3582 3576 mvaddstr_and_log_it(g_currentY++, 3583 3577 0, 3584 _("Run complete. Please remove floppy/CD/media and reboot."));3578 "Run complete. Please remove floppy/CD/media and reboot."); 3585 3579 } else { 3586 3580 run_program_and_log_output("sync", FALSE); … … 3603 3597 mvaddstr_and_log_it(g_currentY++, 3604 3598 0, 3605 _("Run complete. Please remove media and reboot."));3599 "Run complete. Please remove media and reboot."); 3606 3600 } 3607 3601 } … … 3613 3607 if (mount_all_devices(mountlist, TRUE)) { 3614 3608 log_to_screen 3615 ( _("Unable to re-mount partitions for post-nuke stuff"));3609 ("Unable to re-mount partitions for post-nuke stuff"); 3616 3610 } else { 3617 3611 log_msg(1, "Re-mounted partitions for post-nuke stuff"); … … 3646 3640 run_program_and_log_output(tmp, FALSE); 3647 3641 log_to_screen 3648 ( _("Restore log copied to /tmp/mondo-restore.log on your hard disk"));3642 ("Restore log copied to /tmp/mondo-restore.log on your hard disk"); 3649 3643 sprintf(tmp, 3650 _("Mondo-restore is exiting (retval=%d) "),3644 "Mondo-restore is exiting (retval=%d) ", 3651 3645 retval); 3652 3646 log_to_screen(tmp); -
branches/stable/mondo/mondo/mondorestore/mondo-rstr-compare.c
r522 r541 135 135 if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) { 136 136 sprintf(tmp_ptr, 137 _("Cannot open bigfile %ld (%s)'s info file"),137 "Cannot open bigfile %ld (%s)'s info file", 138 138 bigfileno + 1, bigfile_fname_ptr); 139 139 log_to_screen(tmp_ptr); … … 149 149 log_msg(2, "biggiestruct.checksum = %s", biggiestruct.checksum); 150 150 151 sprintf(tmp_ptr, _("Comparing %s"), bigfile_fname_ptr);151 sprintf(tmp_ptr, "Comparing %s", bigfile_fname_ptr); 152 152 153 153 if (!g_text_mode) { … … 252 252 } 253 253 mvaddstr_and_log_it(g_currentY, 0, 254 _("Comparing large files "));255 open_progress_form( _("Comparing large files"),256 _("I am now comparing the large files"),257 _("against the filesystem. Please wait."), "",254 "Comparing large files "); 255 open_progress_form("Comparing large files", 256 "I am now comparing the large files", 257 "against the filesystem. Please wait.", "", 258 258 noof_biggiefiles); 259 259 for (bigfileno = 0; bigfileno < noof_biggiefiles; bigfileno++) { … … 268 268 return (0); 269 269 if (retval) { 270 mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));271 } else { 272 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));270 mvaddstr_and_log_it(g_currentY++, 74, "Errors."); 271 } else { 272 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 273 273 } 274 274 return (retval); … … 428 428 429 429 assert(bkpinfo != NULL); 430 mvaddstr_and_log_it(g_currentY, 0, _("Comparing archives"));430 mvaddstr_and_log_it(g_currentY, 0, "Comparing archives"); 431 431 read_cfg_var(g_mondo_cfg_file, "last-filelist-number", tmp); 432 432 433 433 max_val = atol(tmp); 434 sprintf(progress_str, _("Comparing with %s #%d "),434 sprintf(progress_str, "Comparing with %s #%d ", 435 435 media_descriptor_string(bkpinfo->backup_media_type), 436 436 g_current_media_number); 437 437 438 open_progress_form( _("Comparing files"),439 _("Comparing tarballs against filesystem."),440 _("Please wait. This may take some time."),438 open_progress_form("Comparing files", 439 "Comparing tarballs against filesystem.", 440 "Please wait. This may take some time.", 441 441 progress_str, max_val); 442 442 … … 475 475 log_msg(2, "OK, I think it's time for another CD..."); 476 476 g_current_media_number++; 477 sprintf(progress_str, _("Comparing with %s #%d "),477 sprintf(progress_str, "Comparing with %s #%d ", 478 478 media_descriptor_string(bkpinfo->backup_media_type), 479 479 g_current_media_number); … … 488 488 close_progress_form(); 489 489 if (retval) { 490 mvaddstr_and_log_it(g_currentY++, 74, _("Errors."));491 } else { 492 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));490 mvaddstr_and_log_it(g_currentY++, 74, "Errors."); 491 } else { 492 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 493 493 } 494 494 paranoid_free(tarball_fname); … … 541 541 noof_changed_files = count_lines_in_file("/tmp/changed.txt"); 542 542 if (noof_changed_files) { 543 sprintf(tmp, _("%ld files do not match the backup "),543 sprintf(tmp, "%ld files do not match the backup ", 544 544 noof_changed_files); 545 545 // mvaddstr_and_log_it( g_currentY++, 0, tmp ); … … 548 548 paranoid_system(command); 549 549 } else { 550 sprintf(tmp, _("All files match the backup "));550 sprintf(tmp, "All files match the backup "); 551 551 mvaddstr_and_log_it(g_currentY++, 0, tmp); 552 552 log_to_screen(tmp); … … 598 598 while (get_cfg_file_from_archive(bkpinfo)) { 599 599 if (!ask_me_yes_or_no 600 ( _("Failed to find config file/archives. Choose another source?")))600 ("Failed to find config file/archives. Choose another source?")) 601 601 { 602 602 fatal_error("Unable to find config file/archives. Aborting."); … … 607 607 read_cfg_file_into_bkpinfo(g_mondo_cfg_file, bkpinfo); 608 608 g_current_media_number = 1; 609 mvaddstr_and_log_it(1, 30, _("Comparing Automatically"));609 mvaddstr_and_log_it(1, 30, "Comparing Automatically"); 610 610 iamhere("Pre-MAD"); 611 611 retval = mount_all_devices(mountlist, FALSE); … … 626 626 mvaddstr_and_log_it(g_currentY++, 627 627 0, 628 _("Warning - differences found during the compare phase"));628 "Warning - differences found during the compare phase"); 629 629 } 630 630 … … 633 633 if (count_lines_in_file("/tmp/changed.txt") > 0) { 634 634 mvaddstr_and_log_it(g_currentY++, 0, 635 _("Differences found while files were being compared."));635 "Differences found while files were being compared."); 636 636 streamline_changes_file("/tmp/changed.files", "/tmp/changed.txt"); 637 637 if (count_lines_in_file("/tmp/changed.files") <= 0) { 638 638 mvaddstr_and_log_it(g_currentY++, 0, 639 _("...but they were logfiles and temporary files. Your archives are fine."));639 "...but they were logfiles and temporary files. Your archives are fine."); 640 640 log_to_screen 641 ( _("The differences were logfiles and temporary files. Your archives are fine."));641 ("The differences were logfiles and temporary files. Your archives are fine."); 642 642 } else { 643 643 q = count_lines_in_file("/tmp/changed.files"); 644 sprintf(tmp, _("%ld significant difference%s found."), q,644 sprintf(tmp, "%ld significant difference%s found.", q, 645 645 (q != 1) ? "s" : ""); 646 646 mvaddstr_and_log_it(g_currentY++, 0, tmp); … … 648 648 649 649 strcpy(tmp, 650 _("Type 'less /tmp/changed.files' for a list of non-matching files"));650 "Type 'less /tmp/changed.files' for a list of non-matching files"); 651 651 mvaddstr_and_log_it(g_currentY++, 0, tmp); 652 652 log_to_screen(tmp); … … 658 658 } else { 659 659 log_to_screen 660 ( _("No significant differences were found. Your backup is perfect."));660 ("No significant differences were found. Your backup is perfect."); 661 661 } 662 662 kill_petris(); … … 694 694 run_program_and_log_output(command, FALSE); 695 695 mvaddstr_and_log_it(g_currentY, 696 0, _("Verifying archives against filesystem"));696 0, "Verifying archives against filesystem"); 697 697 698 698 if (bkpinfo->disaster_recovery … … 714 714 } 715 715 716 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));716 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 717 717 paranoid_free(dir); 718 718 paranoid_free(command); … … 751 751 run_program_and_log_output(command, FALSE); 752 752 mvaddstr_and_log_it(g_currentY, 753 0, _("Verifying archives against filesystem"));753 0, "Verifying archives against filesystem"); 754 754 res = verify_tape_backups(bkpinfo); 755 755 chdir(dir); 756 756 if (res) { 757 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));758 } else { 759 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));757 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 758 } else { 759 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 760 760 } 761 761 paranoid_free(dir); -
branches/stable/mondo/mondo/mondorestore/mondo-rstr-newt.c
r538 r541 156 156 157 157 newtPushHelpLine 158 ( _(" Add one of the following unallocated RAID partitions to this RAID device."));159 sprintf(tmp, "%-26s %s", _("Device"), _("Size"));158 (" Add one of the following unallocated RAID partitions to this RAID device."); 159 sprintf(tmp, "%-26s %s", "Device", "Size"); 160 160 headerMsg = newtLabel(1, 1, tmp); 161 161 partitionsListbox = … … 164 164 partitionsListbox); 165 165 i = 7; 166 bOK = newtCompactButton(i, 9, _(" OK "));167 bCancel = newtCompactButton(i += 9, 9, _("Cancel"));168 newtOpenWindow(22, 6, 36, 10, _("Unallocated RAID partitions"));166 bOK = newtCompactButton(i, 9, " OK "); 167 bCancel = newtCompactButton(i += 9, 9, "Cancel"); 168 newtOpenWindow(22, 6, 36, 10, "Unallocated RAID partitions"); 169 169 myForm = newtForm(NULL, NULL, 0); 170 170 newtFormAddComponents(myForm, headerMsg, partitionsListbox, bOK, … … 258 258 size_str[0] = '\0'; 259 259 /* sprintf(size_str,""); */ 260 newtOpenWindow(20, 5, 48, 10, _("Add entry"));261 label0 = newtLabel(2, 1, _("Device: "));262 label1 = newtLabel(2, 2, _("Mountpoint:"));263 label2 = newtLabel(2, 3, _("Size (MB): "));264 label3 = newtLabel(2, 4, _("Format: "));260 newtOpenWindow(20, 5, 48, 10, "Add entry"); 261 label0 = newtLabel(2, 1, "Device: "); 262 label1 = newtLabel(2, 2, "Mountpoint:"); 263 label2 = newtLabel(2, 3, "Size (MB): "); 264 label3 = newtLabel(2, 4, "Format: "); 265 265 deviceComp = 266 266 newtEntry(14, 1, device_str, 30, (void *) &device_here, 0); … … 270 270 newtEntry(14, 4, format_str, 15, (void *) &format_here, 0); 271 271 sizeComp = newtEntry(14, 3, size_str, 10, (void *) &size_here, 0); 272 bOK = newtButton(5, 6, _(" OK "));273 bCancel = newtButton(17, 6, _("Cancel"));272 bOK = newtButton(5, 6, " OK "); 273 bCancel = newtButton(17, 6, "Cancel"); 274 274 newtPushHelpLine 275 ( _("To add an entry to the mountlist, please fill in these fields and then hit 'OK'"));275 ("To add an entry to the mountlist, please fill in these fields and then hit 'OK'"); 276 276 myForm = newtForm(NULL, NULL, 0); 277 277 newtFormAddComponents(myForm, deviceComp, mountpointComp, sizeComp, … … 292 292 if (b_res == bOK) { 293 293 if (device_str[strlen(device_str) - 1] == '/') { 294 popup_and_OK( _("You left the device nearly blank!"));294 popup_and_OK("You left the device nearly blank!"); 295 295 b_res = NULL; 296 296 } 297 297 if (size_of_specific_device_in_mountlist(mountlist, device_str) 298 298 >= 0) { 299 popup_and_OK( _("Can't add this - you've got one already!"));299 popup_and_OK("Can't add this - you've got one already!"); 300 300 b_res = NULL; 301 301 } … … 346 346 sz_out[0] = '\0'; 347 347 if (popup_and_get_string 348 ("Add variable", _("Enter the name of the variable to add"), sz_out,348 ("Add variable", "Enter the name of the variable to add", sz_out, 349 349 MAX_STR_LEN)) { 350 350 strip_spaces(sz_out); … … 355 355 if (i < items) { 356 356 popup_and_OK 357 ( _("No need to add that variable. It is already listed here."));357 ("No need to add that variable. It is already listed here."); 358 358 } else { 359 359 strcpy(raidrec->additional_vars.el[items].label, sz_out); … … 555 555 556 556 sprintf(prompt, 557 _("Please enter the RAID level you want. (concat, striped, raid5)"));557 "Please enter the RAID level you want. (concat, striped, raid5)"); 558 558 if (raidrec->raidlevel == -1) { 559 559 strcpy(tmp, "concat"); … … 608 608 strcpy(personalities, 609 609 last_line_of_file("/tmp/raid-personalities.txt")); 610 sprintf(prompt, _("Please enter the RAID level you want. %s"),610 sprintf(prompt, "Please enter the RAID level you want. %s", 611 611 personalities); 612 612 if (raidrec->raid_level == -1) { … … 618 618 out != -1 && out != 0 && out != 1 && out != 4 && out != 5 619 619 && out != 10;) { 620 res = popup_and_get_string( _("Specify RAID level"), prompt, tmp, 10);620 res = popup_and_get_string("Specify RAID level", prompt, tmp, 10); 621 621 if (!res) { 622 622 return; … … 641 641 } else { 642 642 if (ask_me_yes_or_no 643 ( _("You have chosen a RAID personality which is not registered with the kernel. Make another selection?")))643 ("You have chosen a RAID personality which is not registered with the kernel. Make another selection?")) 644 644 { 645 645 out = 999; … … 720 720 assert_string_is_neither_NULL_nor_zerolength(raid_device); 721 721 722 sprintf(tmp, _("Delete %s from RAID device %s - are you sure?"),722 sprintf(tmp, "Delete %s from RAID device %s - are you sure?", 723 723 disklist->el[currline].device, raid_device); 724 724 if (!ask_me_yes_or_no(tmp)) { … … 768 768 device); 769 769 if (pos >= 0) { 770 sprintf(tmp, _("Cannot delete %s: it is in use by RAID device %s"),770 sprintf(tmp, "Cannot delete %s: it is in use by RAID device %s", 771 771 mountlist->el[currline].device, 772 772 raidlist->el[pos].OSSWAP(raid_device, volname)); … … 774 774 return; 775 775 } 776 sprintf(tmp, _("Delete %s - are you sure?"),776 sprintf(tmp, "Delete %s - are you sure?", 777 777 mountlist->el[currline].device); 778 778 if (!ask_me_yes_or_no(tmp)) { … … 829 829 return; 830 830 } 831 sprintf(tmp, _("Do you want me to delete %s's partitions, too?"), device);831 sprintf(tmp, "Do you want me to delete %s's partitions, too?", device); 832 832 delete_partitions_too = ask_me_yes_or_no(tmp); 833 833 if (delete_partitions_too) { … … 896 896 897 897 av = &raidrec->additional_vars; 898 sprintf(tmp, _("Delete %s - are you sure?"), av->el[lino].label);898 sprintf(tmp, "Delete %s - are you sure?", av->el[lino].label); 899 899 if (ask_me_yes_or_no(tmp)) { 900 900 if (!strcmp(av->el[lino].label, "persistent-superblock") 901 901 || !strcmp(av->el[lino].label, "chunk-size")) { 902 sprintf(tmp, _("%s must not be deleted. It would be bad."),902 sprintf(tmp, "%s must not be deleted. It would be bad.", 903 903 av->el[lino].label); 904 904 popup_and_OK(tmp); … … 967 967 warned_already = TRUE; 968 968 sprintf(tmp, 969 _("Too many lines. Displaying first %d entries only. Close a directory to see more."),969 "Too many lines. Displaying first %d entries only. Close a directory to see more.", 970 970 ARBITRARY_MAXIMUM); 971 971 popup_and_OK(tmp); … … 1105 1105 assert(filelist != NULL); 1106 1106 1107 log_to_screen( _("Editing filelist"));1107 log_to_screen("Editing filelist"); 1108 1108 newtPushHelpLine 1109 ( _(" Please edit the filelist to your satisfaction, then click OK or Cancel."));1109 (" Please edit the filelist to your satisfaction, then click OK or Cancel."); 1110 1110 j = 4; 1111 bLess = newtCompactButton(j, 17, _(" Less "));1112 bMore = newtCompactButton(j += 12, 17, _(" More "));1113 bToggle = newtCompactButton(j += 12, 17, _("Toggle"));1114 bRegex = newtCompactButton(j += 12, 17, _("RegEx"));1115 bCancel = newtCompactButton(j += 12, 17, _("Cancel"));1116 bOK = newtCompactButton(j += 12, 17, _(" OK "));1111 bLess = newtCompactButton(j, 17, " Less "); 1112 bMore = newtCompactButton(j += 12, 17, " More "); 1113 bToggle = newtCompactButton(j += 12, 17, "Toggle"); 1114 bRegex = newtCompactButton(j += 12, 17, "RegEx"); 1115 bCancel = newtCompactButton(j += 12, 17, "Cancel"); 1116 bOK = newtCompactButton(j += 12, 17, " OK "); 1117 1117 filelistListbox = 1118 1118 newtListbox(2, 1, 15, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT); … … 1120 1120 lines_in_flist_window = 1121 1121 redraw_filelist(filelist, keylist, filelistListbox); 1122 newtOpenWindow(1, 3, 77, 18, _("Editing filelist"));1122 newtOpenWindow(1, 3, 77, 18, "Editing filelist"); 1123 1123 myForm = newtForm(NULL, NULL, 0); 1124 1124 newtFormAddComponents(myForm, filelistListbox, bLess, bMore, bToggle, … … 1129 1129 finished = 1130 1130 ask_me_yes_or_no 1131 ( _("Are you happy with your file selection?"));1131 ("Are you happy with your file selection?"); 1132 1132 } else if (b_res == bCancel) { 1133 1133 finished = TRUE; 1134 1134 } else if (b_res == bRegex) { 1135 popup_and_OK( _("I haven't implemented this yet..."));1135 popup_and_OK("I haven't implemented this yet..."); 1136 1136 } else { 1137 1137 curr_choice = newtListboxGetCurrent(filelistListbox); … … 1269 1269 sprintf(size_str, "%lld", mountlist->el[currline].size / 1024); 1270 1270 newtOpenWindow(20, 5, 48, 10, "Edit entry"); 1271 label0 = newtLabel(2, 1, _("Device:"));1272 label1 = newtLabel(2, 2, _("Mountpoint:"));1273 label2 = newtLabel(2, 3, _("Size (MB): "));1274 label3 = newtLabel(2, 4, _("Format: "));1271 label0 = newtLabel(2, 1, "Device:"); 1272 label1 = newtLabel(2, 2, "Mountpoint:"); 1273 label2 = newtLabel(2, 3, "Size (MB): "); 1274 label3 = newtLabel(2, 4, "Format: "); 1275 1275 deviceComp = 1276 1276 newtEntry(14, 1, device_str, 30, (void *) &device_here, 0); … … 1285 1285 sizeComp = newtEntry(14, 3, size_str, 10, (void *) &size_here, 0); 1286 1286 } 1287 bOK = newtButton(2, 6, _(" OK "));1288 bCancel = newtButton(14, 6, _("Cancel"));1287 bOK = newtButton(2, 6, " OK "); 1288 bCancel = newtButton(14, 6, "Cancel"); 1289 1289 if (strstr(mountlist->el[currline].device, RAID_DEVICE_STUB)) { 1290 1290 b_raid = newtButton(26, 6, "RAID.."); 1291 1291 } 1292 1292 newtPushHelpLine 1293 ( _(" Edit this partition's mountpoint, size and format; then click 'OK'."));1293 (" Edit this partition's mountpoint, size and format; then click 'OK'."); 1294 1294 myForm = newtForm(NULL, NULL, 0); 1295 1295 newtFormAddComponents(myForm, deviceComp, mountpointComp, sizeComp, … … 1307 1307 && strstr(device_used_to_be, RAID_DEVICE_STUB) 1308 1308 && strcmp(device_str, device_used_to_be)) { 1309 popup_and_OK( _("You can't change /dev/mdX to /dev/mdY."));1309 popup_and_OK("You can't change /dev/mdX to /dev/mdY."); 1310 1310 b_res = NULL; 1311 1311 continue; 1312 1312 } else if (b_res == bOK && !strcmp(mountpoint_str, "image") 1313 1313 && strcmp(mountpt_used_to_be, "image")) { 1314 popup_and_OK( _("You can't change a regular device to an image."));1314 popup_and_OK("You can't change a regular device to an image."); 1315 1315 b_res = NULL; 1316 1316 continue; … … 1335 1335 */ 1336 1336 popup_and_OK 1337 ( _("You cannot edit the RAID settings until you have OK'd your change to the device node."));1337 ("You cannot edit the RAID settings until you have OK'd your change to the device node."); 1338 1338 } else { 1339 1339 j = find_raid_device_in_raidlist(raidlist, … … 1342 1342 if (j < 0) { 1343 1343 sprintf(tmp, 1344 _("/etc/raidtab does not have an entry for %s; please delete it and add it again"),1344 "/etc/raidtab does not have an entry for %s; please delete it and add it again", 1345 1345 mountlist->el[currline].device); 1346 1346 popup_and_OK(tmp); 1347 1347 } else { 1348 log_it( _("edit_raidlist_entry - calling"));1348 log_it("edit_raidlist_entry - calling"); 1349 1349 edit_raidlist_entry(mountlist, raidlist, 1350 1350 &raidlist->el[j], currline); … … 1396 1396 else if (strcmp(device_used_to_be, device_str)) { 1397 1397 popup_and_OK 1398 ( _("You are renaming a RAID device as another RAID device. I don't like it but I'll allow it."));1398 ("You are renaming a RAID device as another RAID device. I don't like it but I'll allow it."); 1399 1399 } 1400 1400 #endif … … 1506 1506 int currline2 = 0; 1507 1507 1508 log_it( _("Started edit_raidlist_entry"));1508 log_it("Started edit_raidlist_entry"); 1509 1509 memcpy((void *) &bkp_raidrec, (void *) raidrec, 1510 1510 sizeof(struct vinum_volume)); 1511 sprintf(title_of_editraidForm_window, _("Plexes on %s"),1511 sprintf(title_of_editraidForm_window, "Plexes on %s", 1512 1512 raidrec->volname); 1513 newtPushHelpLine( _(" Please select a plex to edit"));1513 newtPushHelpLine(" Please select a plex to edit"); 1514 1514 newtOpenWindow(13, 5, 54, 15, title_of_editraidForm_window); 1515 1515 for (;;) { … … 1517 1517 char headerstr[MAX_STR_LEN]; 1518 1518 snprintf(headerstr, MAX_STR_LEN, "%-14s %-8s %11s %8s", 1519 _("Plex"), _("Level",) _("Stripe Size"), _("Subdisks"));1520 1521 bOK = newtCompactButton(2, 13, _(" OK "));1522 bCancel = newtCompactButton(12, 13, _("Cancel"));1523 bAdd = newtCompactButton(22, 13, _(" Add "));1524 bEdit = newtCompactButton(32, 13, _(" Edit "));1525 bDelete = newtCompactButton(42, 13, _("Delete"));1519 "Plex", "Level", "Stripe Size", "Subdisks"); 1520 1521 bOK = newtCompactButton(2, 13, " OK "); 1522 bCancel = newtCompactButton(12, 13, "Cancel"); 1523 bAdd = newtCompactButton(22, 13, " Add "); 1524 bEdit = newtCompactButton(32, 13, " Edit "); 1525 bDelete = newtCompactButton(42, 13, "Delete"); 1526 1526 1527 1527 plexesListbox = … … 1583 1583 if (b_res == bDelete) { 1584 1584 char msg[MAX_STR_LEN]; 1585 sprintf(msg, _("Are you sure you want to delete %s.p%i?"),1585 sprintf(msg, "Are you sure you want to delete %s.p%i?", 1586 1586 raidrec->volname, currline2); 1587 1587 if (ask_me_yes_or_no(msg)) { 1588 log_it( _("Deleting RAID plex"));1588 log_it("Deleting RAID plex"); 1589 1589 memcpy((void *) &raidrec->plex[currline2], 1590 1590 (void *) &raidrec->plex[raidrec->plexes - 1], … … 1660 1660 for (;;) { 1661 1661 log_msg(2, "Main loop"); 1662 sprintf(title_of_editraidForm_window, _("Edit %s"),1662 sprintf(title_of_editraidForm_window, "Edit %s", 1663 1663 raidrec->raid_device); 1664 1664 strcpy(sz_raid_level, … … 1666 1666 strcpy(sz_data_disks, 1667 1667 number_of_disks_as_string(raidrec->data_disks.entries, 1668 _("data")));1668 "data")); 1669 1669 strcpy(sz_spare_disks, 1670 1670 number_of_disks_as_string(raidrec->spare_disks.entries, 1671 _("spare")));1671 "spare")); 1672 1672 strcpy(sz_parity_disks, 1673 1673 number_of_disks_as_string(raidrec->parity_disks.entries, 1674 _("parity")));1674 "parity")); 1675 1675 strcpy(sz_failed_disks, 1676 1676 number_of_disks_as_string(raidrec->failed_disks.entries, 1677 _("failed")));1677 "failed")); 1678 1678 bSelectData = newtButton(1, 1, sz_data_disks); 1679 1679 bSelectSpare = newtButton(20, 1, sz_spare_disks); … … 1681 1681 bSelectFailed = newtButton(20, 5, sz_failed_disks); 1682 1682 bChangeRaid = newtButton(1, 9, sz_raid_level); 1683 bOK = newtButton(16 + (raidrec->raid_level == -1), 9, _(" OK "));1684 bCancel = newtButton(28, 9, _("Cancel"));1683 bOK = newtButton(16 + (raidrec->raid_level == -1), 9, " OK "); 1684 bCancel = newtButton(28, 9, "Cancel"); 1685 1685 bAdditional = 1686 1686 newtCompactButton(1, 13, 1687 _("Additional settings and information"));1687 "Additional settings and information"); 1688 1688 newtPushHelpLine 1689 ( _(" Edit the RAID device's settings to your heart's content, then hit OK/Cancel."));1689 (" Edit the RAID device's settings to your heart's content, then hit OK/Cancel."); 1690 1690 editraidForm = newtForm(NULL, NULL, 0); 1691 1691 newtFormAddComponents(editraidForm, bSelectData, bSelectParity, … … 1696 1696 choose_raid_level(raidrec); 1697 1697 } else if (b_res == bSelectData) { 1698 select_raid_disks(mountlist, raidlist, raidrec, _("data"),1698 select_raid_disks(mountlist, raidlist, raidrec, "data", 1699 1699 &raidrec->data_disks); 1700 1700 } else if (b_res == bSelectSpare) { 1701 select_raid_disks(mountlist, raidlist, raidrec, _("spare"),1701 select_raid_disks(mountlist, raidlist, raidrec, "spare", 1702 1702 &raidrec->spare_disks); 1703 1703 } else if (b_res == bSelectParity) { 1704 select_raid_disks(mountlist, raidlist, raidrec, _("parity"),1704 select_raid_disks(mountlist, raidlist, raidrec, "parity", 1705 1705 &raidrec->parity_disks); 1706 1706 } else if (b_res == bSelectFailed) { 1707 select_raid_disks(mountlist, raidlist, raidrec, _("failed"),1707 select_raid_disks(mountlist, raidlist, raidrec, "failed", 1708 1708 &raidrec->failed_disks); 1709 1709 } else if (b_res == bAdditional) { … … 1786 1786 raidlist->el[currline].volname, currline2); 1787 1787 newtPushHelpLine 1788 ( _(" Please select a subdisk to edit, or edit this plex's parameters"));1788 (" Please select a subdisk to edit, or edit this plex's parameters"); 1789 1789 newtOpenWindow(13, 3, 54, 18, title_of_editraidForm_window); 1790 1790 for (;;) { … … 1792 1792 char headerstr[MAX_STR_LEN]; 1793 1793 char tmp[64]; 1794 snprintf(headerstr, MAX_STR_LEN, "%-24s %s", _("Subdisk"), _("Device"));1794 snprintf(headerstr, MAX_STR_LEN, "%-24s %s", "Subdisk", "Device"); 1795 1795 1796 1796 … … 1806 1806 break; 1807 1807 default: 1808 sprintf(tmp, _("unknown (%i)"), raidrec->raidlevel);1808 sprintf(tmp, "unknown (%i)", raidrec->raidlevel); 1809 1809 break; 1810 1810 } 1811 bLevel = newtCompactButton(2, 2, _(" RAID level "));1811 bLevel = newtCompactButton(2, 2, " RAID level "); 1812 1812 sLevel = newtLabel(19, 2, tmp); 1813 1813 1814 1814 if (raidrec->raidlevel >= 0) { 1815 1815 sprintf(tmp, "%ik", raidrec->stripesize); 1816 bStripeSize = newtCompactButton(2, 4, _(" Stripe size "));1816 bStripeSize = newtCompactButton(2, 4, " Stripe size "); 1817 1817 } else { 1818 1818 strcpy(tmp, "N/A"); 1819 bStripeSize = newtLabel(2, 4, _("Stripe size:"));1819 bStripeSize = newtLabel(2, 4, "Stripe size:"); 1820 1820 } 1821 1821 sStripeSize = newtLabel(19, 4, tmp); 1822 1822 1823 bOK = newtCompactButton(2, 16, _(" OK "));1824 bCancel = newtCompactButton(12, 16, _("Cancel"));1825 bAdd = newtCompactButton(22, 16, _(" Add "));1826 bEdit = newtCompactButton(32, 16, _(" Edit "));1827 bDelete = newtCompactButton(42, 16, _("Delete"));1823 bOK = newtCompactButton(2, 16, " OK "); 1824 bCancel = newtCompactButton(12, 16, "Cancel"); 1825 bAdd = newtCompactButton(22, 16, " Add "); 1826 bEdit = newtCompactButton(32, 16, " Edit "); 1827 bDelete = newtCompactButton(42, 16, "Delete"); 1828 1828 1829 1829 … … 1911 1911 sprintf(tmp, "%i", raidrec->stripesize); 1912 1912 if (popup_and_get_string 1913 ( _("Stripe size"),1914 _("Please enter the stripe size in kilobytes."), tmp, 20)) {1913 ("Stripe size", 1914 "Please enter the stripe size in kilobytes.", tmp, 20)) { 1915 1915 raidrec->stripesize = atoi(tmp); 1916 1916 } … … 1963 1963 1964 1964 strcpy(sz_out, raidrec->additional_vars.el[lino].value); 1965 sprintf(header, _("Edit %s"), raidrec->additional_vars.el[lino].label);1966 sprintf(comment, _("Please set %s's value (currently '%s')"),1965 sprintf(header, "Edit %s", raidrec->additional_vars.el[lino].label); 1966 sprintf(comment, "Please set %s's value (currently '%s')", 1967 1967 raidrec->additional_vars.el[lino].label, sz_out); 1968 1968 if (popup_and_get_string(header, comment, sz_out, MAX_STR_LEN)) { … … 2026 2026 strcpy(flaws_str_C, "xxxxxxxxx"); 2027 2027 if (mountlist->entries > ARBITRARY_MAXIMUM) { 2028 log_to_screen( _("Arbitrary limits suck, man!"));2028 log_to_screen("Arbitrary limits suck, man!"); 2029 2029 finish(1); 2030 2030 } 2031 2031 newtPushHelpLine 2032 ( _(" Please edit the mountlist to your satisfaction, then click OK or Cancel."));2032 (" Please edit the mountlist to your satisfaction, then click OK or Cancel."); 2033 2033 i = 4; 2034 bAdd = newtCompactButton(i, 17, _(" Add "));2035 bEdit = newtCompactButton(i += 11, 17, _(" Edit "));2036 bDelete = newtCompactButton(i += 12, 17, _("Delete"));2037 bReload = newtCompactButton(i += 12, 17, _("Reload"));2038 bCancel = newtCompactButton(i += 12, 17, _("Cancel"));2039 bOK = newtCompactButton(i += 12, 17, _(" OK "));2040 sprintf(tmp, "%-24s %-24s %-8s %s", _("Device"), _("Mountpoint"), _("Format"),2041 _("Size (MB)"));2034 bAdd = newtCompactButton(i, 17, " Add "); 2035 bEdit = newtCompactButton(i += 11, 17, " Edit "); 2036 bDelete = newtCompactButton(i += 12, 17, "Delete"); 2037 bReload = newtCompactButton(i += 12, 17, "Reload"); 2038 bCancel = newtCompactButton(i += 12, 17, "Cancel"); 2039 bOK = newtCompactButton(i += 12, 17, " OK "); 2040 sprintf(tmp, "%-24s %-24s %-8s %s", "Device", "Mountpoint", "Format", 2041 "Size (MB)"); 2042 2042 headerMsg = newtLabel(2, 1, tmp); 2043 2043 flawsLabelA = newtLabel(2, 13, flaws_str_A); … … 2047 2047 newtListbox(2, 2, 10, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT); 2048 2048 redraw_mountlist(mountlist, keylist, partitionsListbox); 2049 newtOpenWindow(1, 3, 77, 18, _("Editing mountlist"));2049 newtOpenWindow(1, 3, 77, 18, "Editing mountlist"); 2050 2050 myForm = newtForm(NULL, NULL, 0); 2051 2051 newtFormAddComponents(myForm, headerMsg, partitionsListbox, … … 2064 2064 finished = 2065 2065 ask_me_yes_or_no 2066 ( _("Your mountlist might not work. Continue anyway?"));2066 ("Your mountlist might not work. Continue anyway?"); 2067 2067 } else { 2068 2068 finished = 2069 2069 ask_me_yes_or_no 2070 ( _("Are you sure you want to save your mountlist and continue? (No changes will be made to your partition table at this time.)"));2070 ("Are you sure you want to save your mountlist and continue? (No changes will be made to your partition table at this time.)"); 2071 2071 } 2072 2072 } else if (b_res == bCancel) { 2073 2073 finished = TRUE; 2074 2074 } else if (b_res == bReload) { 2075 if (ask_me_yes_or_no( _("Reload original mountlist?"))) {2075 if (ask_me_yes_or_no("Reload original mountlist?")) { 2076 2076 /* 2077 2077 This would be really dumb. RAIDTAB_FNAME is #define'd. --- Hugo, 2003/04/24 … … 2091 2091 i < mountlist->entries && keylist[i] != curr_choice; i++); 2092 2092 if (i == mountlist->entries && mountlist->entries > 0) { 2093 log_to_screen( _("I don't know what that button does!"));2093 log_to_screen("I don't know what that button does!"); 2094 2094 } else { 2095 2095 currline = i; … … 2109 2109 } else { 2110 2110 popup_and_OK 2111 ( _("Please add an entry. Then press ENTER to edit it."));2111 ("Please add an entry. Then press ENTER to edit it."); 2112 2112 } 2113 2113 } … … 2119 2119 newtPopHelpLine(); 2120 2120 if (b_res == bOK) { 2121 log_it( _("You pushed 'OK'. I shall now continue."));2121 log_it("You pushed 'OK'. I shall now continue."); 2122 2122 return (0); 2123 2123 } else { … … 2198 2198 sprintf(title_of_window, "Additional variables"); 2199 2199 newtPushHelpLine 2200 ( _(" Edit the additional fields to your heart's content, then click OK or Cancel."));2201 headerMsg = newtLabel(1, 1, _("Label Value"));2200 (" Edit the additional fields to your heart's content, then click OK or Cancel."); 2201 headerMsg = newtLabel(1, 1, "Label Value"); 2202 2202 varsListbox = 2203 2203 newtListbox(1, 2, 6, NEWT_FLAG_SCROLL | NEWT_FLAG_RETURNEXIT); 2204 2204 i = 1; 2205 bAdd = newtCompactButton(i, 9, _(" Add "));2206 bEdit = newtCompactButton(i += 8, 9, _(" Edit "));2207 bDelete = newtCompactButton(i += 9, 9, _("Delete"));2208 bOK = newtCompactButton(i += 9, 9, _(" OK "));2209 bCancel = newtCompactButton(i += 9, 9, _("Cancel"));2205 bAdd = newtCompactButton(i, 9, " Add "); 2206 bEdit = newtCompactButton(i += 8, 9, " Edit "); 2207 bDelete = newtCompactButton(i += 9, 9, "Delete"); 2208 bOK = newtCompactButton(i += 9, 9, " OK "); 2209 bCancel = newtCompactButton(i += 9, 9, "Cancel"); 2210 2210 newtOpenWindow(17, 7, 46, 10, title_of_window); 2211 2211 myForm = newtForm(NULL, NULL, 0); … … 2328 2328 * @param isodir_device Where to put the device (e.g. /dev/hda4) the user enters. 2329 2329 * @param isodir_format Where to put the format (e.g. ext2) the user enters. 2330 * @param isodir_path Where to put the path (e.g. / var/cache/mondo) the user enters.2330 * @param isodir_path Where to put the path (e.g. /root/images/mondo) the user enters. 2331 2331 * @param nuke_me_please Whether we're planning on nuking or not. 2332 2332 * @return TRUE if OK was pressed, FALSE otherwise. … … 2361 2361 2362 2362 if (popup_and_get_string 2363 ( _("ISO Mode - device"), _("On what device do the ISO files live?"),2363 ("ISO Mode - device", "On what device do the ISO files live?", 2364 2364 isodir_device, MAX_STR_LEN / 4)) { 2365 2365 if (popup_and_get_string 2366 ( _("ISO Mode - format"),2367 _("What is the disk format of the device? (Hit ENTER if you don't know.)"),2366 ("ISO Mode - format", 2367 "What is the disk format of the device? (Hit ENTER if you don't know.)", 2368 2368 isodir_format, 16)) { 2369 2369 if (popup_and_get_string 2370 ( _("ISO Mode - path"),2371 _("At what path on this device can the ISO files be found?"),2370 ("ISO Mode - path", 2371 "At what path on this device can the ISO files be found?", 2372 2372 isodir_path, MAX_STR_LEN / 4)) { 2373 2373 strip_spaces(isodir_device); … … 2467 2467 2468 2468 newtPushHelpLine 2469 ( _("This is where I nuke your hard drives. Mhahahahaha. No-one can stop Mojo Jojo!"));2470 newtOpenWindow(24, 3, 32, 13, _("Nuking"));2471 b1 = newtButton(7, 1, _("Slowly"));2472 b2 = newtButton(7, 5, _("Medium"));2473 b3 = newtButton(7, 9, _("Quickly"));2469 ("This is where I nuke your hard drives. Mhahahahaha. No-one can stop Mojo Jojo!"); 2470 newtOpenWindow(24, 3, 32, 13, "Nuking"); 2471 b1 = newtButton(7, 1, "Slowly"); 2472 b2 = newtButton(7, 5, "Medium"); 2473 b3 = newtButton(7, 9, "Quickly"); 2474 2474 myForm = newtForm(NULL, NULL, 0); 2475 2475 newtFormAddComponents(myForm, b1, b2, b3, NULL); … … 2837 2837 iamhere("Post-malloc"); 2838 2838 strcpy(help_text, 2839 _(" Edit this RAID device's list of partitions. Choose OK or Cancel when done."));2840 sprintf(header_text, "%-24s %s", _("Device"), _("Index"));2841 sprintf(title_of_window, _("%s contains..."), raidrec->raid_device);2839 " Edit this RAID device's list of partitions. Choose OK or Cancel when done."); 2840 sprintf(header_text, "%-24s %s", "Device", "Index"); 2841 sprintf(title_of_window, "%s contains...", raidrec->raid_device); 2842 2842 newtPushHelpLine(help_text); 2843 2843 for (b_res = (newtComponent) 12345; b_res != bOK && b_res != bCancel;) { … … 2847 2847 redraw_disklist(disklist, keylist, partitionsListbox); 2848 2848 i = 1; 2849 bAdd = newtCompactButton(i, 9, _(" Add "));2850 bDelete = newtCompactButton(i += 8, 9, _("Delete"));2851 bOK = newtCompactButton(i += 9, 9, _(" OK "));2852 bCancel = newtCompactButton(i += 9, 9, _("Cancel"));2849 bAdd = newtCompactButton(i, 9, " Add "); 2850 bDelete = newtCompactButton(i += 8, 9, "Delete"); 2851 bOK = newtCompactButton(i += 9, 9, " OK "); 2852 bCancel = newtCompactButton(i += 9, 9, "Cancel"); 2853 2853 newtOpenWindow(21, 7, 38, 10, title_of_window); 2854 2854 myForm = newtForm(NULL, NULL, 0); … … 2869 2869 i++); 2870 2870 if (i == disklist->entries && disklist->entries > 0) { 2871 log_to_screen( _("I don't know what that button does!"));2871 log_to_screen("I don't know what that button does!"); 2872 2872 } else { 2873 2873 currline = i; 2874 2874 if (b_res == bAdd) { 2875 log_it( _("Making list of unallocated RAID slices"));2875 log_it("Making list of unallocated RAID slices"); 2876 2876 make_list_of_unallocated_raid_partitions 2877 2877 (unallocated_raid_partitions, mountlist_dontedit, … … 2879 2879 if (unallocated_raid_partitions->entries <= 0) { 2880 2880 popup_and_OK 2881 ( _("There are no unallocated partitions marked for RAID."));2881 ("There are no unallocated partitions marked for RAID."); 2882 2882 } else { 2883 2883 log_it 2884 ( _("Done. The user may add one or more of the above to RAID device"));2884 ("Done. The user may add one or more of the above to RAID device"); 2885 2885 add_disklist_entry(disklist, raidrec->raid_device, 2886 2886 unallocated_raid_partitions); 2887 log_it( _("I have finished adding a disklist entry."));2887 log_it("I have finished adding a disklist entry."); 2888 2888 redraw_disklist(disklist, keylist, 2889 2889 partitionsListbox); … … 2894 2894 redraw_disklist(disklist, keylist, partitionsListbox); 2895 2895 } else { 2896 sprintf(tmp, _("%s's index is %d. What should it be?"),2896 sprintf(tmp, "%s's index is %d. What should it be?", 2897 2897 raidrec->raid_device, 2898 2898 disklist->el[currline].index); 2899 2899 sprintf(sz_res, "%d", disklist->el[currline].index); 2900 if (popup_and_get_string( _("Set index"), tmp, sz_res, 10)) {2900 if (popup_and_get_string("Set index", tmp, sz_res, 10)) { 2901 2901 disklist->el[currline].index = atoi(sz_res); 2902 2902 } … … 2955 2955 for (output = 'z'; !strchr("AICE", output); output = tmp[0]) { 2956 2956 printf 2957 ( _("Which mode - (A)utomatic, (I)nteractive, \n(C)ompare only, or (E)xit to shell?\n--> "));2957 ("Which mode - (A)utomatic, (I)nteractive, \n(C)ompare only, or (E)xit to shell?\n--> "); 2958 2958 fgets(tmp, MAX_STR_LEN - 1, stdin); 2959 2959 } … … 2962 2962 2963 2963 newtPushHelpLine 2964 ( _(" Do you want to 'nuke' your system, restore interactively, or just compare?"));2965 newtOpenWindow(24, 3, 32, 17, _("How should I restore?"));2966 b1 = newtButton(7, 1, _("Automatically"));2967 b2 = newtButton(7, 5, _("Interactively"));2968 b3 = newtButton(7, 9, _("Compare only!"));2969 b4 = newtButton(7, 13, _("Exit to shell"));2964 (" Do you want to 'nuke' your system, restore interactively, or just compare?"); 2965 newtOpenWindow(24, 3, 32, 17, "How should I restore?"); 2966 b1 = newtButton(7, 1, "Automatically"); 2967 b2 = newtButton(7, 5, "Interactively"); 2968 b3 = newtButton(7, 9, "Compare only!"); 2969 b4 = newtButton(7, 13, "Exit to shell"); 2970 2970 myForm = newtForm(NULL, NULL, 0); 2971 2971 newtFormAddComponents(myForm, b1, b2, b3, b4, NULL); -
branches/stable/mondo/mondo/mondorestore/mondo-rstr-newt.h
r501 r541 25 25 #endif /*__FreeBSD__*/ 26 26 27 #define NO_FLAWS_DETECTED _("No flaws detected in mountlist at this time. Hit 'OK' to proceed.")27 #define NO_FLAWS_DETECTED "No flaws detected in mountlist at this time. Hit 'OK' to proceed." 28 28 29 29 -
branches/stable/mondo/mondo/mondorestore/mondo-rstr-tools.c
r497 r541 241 241 242 242 sprintf(question_ptr, 243 _("Should I restore the image of %s ?"), incoming_ptr);243 "Should I restore the image of %s ?", incoming_ptr); 244 244 245 245 if (ask_me_yes_or_no(question_ptr)) { … … 355 355 while (get_cfg_file_from_archive(bkpinfo)) { 356 356 if (!ask_me_yes_or_no 357 ( _("Failed to find config file/archives. Choose another source?")))357 ("Failed to find config file/archives. Choose another source?")) 358 358 { 359 359 fatal_error("Could not find config file/archives. Aborting."); … … 459 459 460 460 if (is_this_device_mounted(g_isodir_device)) { 461 log_to_screen( _("WARNING - isodir is already mounted"));461 log_to_screen("WARNING - isodir is already mounted"); 462 462 already_mounted = TRUE; 463 463 } else { … … 476 476 if (run_program_and_log_output(mount_isodir_command, FALSE)) { 477 477 popup_and_OK 478 ( _("Cannot mount the device where the ISO files are stored."));478 ("Cannot mount the device where the ISO files are stored."); 479 479 return (1); 480 480 } 481 481 log_to_screen 482 ( _("I have mounted the device where the ISO files are stored."));482 ("I have mounted the device where the ISO files are stored."); 483 483 } 484 484 if (!IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { … … 491 491 if (i < 0) { 492 492 popup_and_OK 493 ( _("Cannot find ISO images in the directory you specified."));493 ("Cannot find ISO images in the directory you specified."); 494 494 retval = 1; 495 495 } … … 617 617 these_failed[0] = '\0'; 618 618 619 mvaddstr_and_log_it(g_currentY, 0, _("Mounting devices "));620 open_progress_form( _("Mounting devices"),621 _("I am now mounting all the drives."),622 _("This should not take long."),619 mvaddstr_and_log_it(g_currentY, 0, "Mounting devices "); 620 open_progress_form("Mounting devices", 621 "I am now mounting all the drives.", 622 "This should not take long.", 623 623 "", mountlist->entries); 624 624 … … 628 628 "Again with the /proc - why is this in your mountlist?"); 629 629 } else if (is_this_device_mounted(mountlist->el[lino].device)) { 630 sprintf(tmp, _("%s is already mounted"),630 sprintf(tmp, "%s is already mounted", 631 631 mountlist->el[lino].device); 632 632 log_to_screen(tmp); … … 657 657 if (g_partition_table_locked_up > 0) { 658 658 log_to_screen 659 ( _("fdisk's ioctl() call to refresh its copy of the partition table causes the kernel to"));659 ("fdisk's ictol() call to refresh its copy of the partition table causes the kernel to"); 660 660 log_to_screen 661 ( _("lock up the partition table. You might have to reboot and use Interactive Mode to"));661 ("lock up the partition table. You might have to reboot and use Interactive Mode to"); 662 662 log_to_screen 663 ( _("format and restore *without* partitioning first. Sorry for the inconvenience."));664 } 665 sprintf(tmp, _("Could not mount devices %s- shall I abort?"),663 ("format and restore *without* partitioning first. Sorry for the inconvenience."); 664 } 665 sprintf(tmp, "Could not mount devices %s- shall I abort?", 666 666 these_failed); 667 667 if (!ask_me_yes_or_no(tmp)) { 668 668 retval = 0; 669 669 log_to_screen 670 ( _("Continuing, although some devices failed to be mounted"));671 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));670 ("Continuing, although some devices failed to be mounted"); 671 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 672 672 } else { 673 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));673 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 674 674 log_to_screen 675 ( _("Unable to mount some or all of your partitions."));675 ("Unable to mount some or all of your partitions."); 676 676 } 677 677 } else { 678 log_to_screen( _("All partitions were mounted OK."));679 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));678 log_to_screen("All partitions were mounted OK."); 679 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 680 680 } 681 681 run_program_and_log_output("df -P -m", 3); … … 1340 1340 if (am_I_in_disaster_recovery_mode() 1341 1341 && 1342 ask_me_yes_or_no( _("Do you want to retrieve the mountlist as well?")))1342 ask_me_yes_or_no("Do you want to retrieve the mountlist as well?")) 1343 1343 { 1344 1344 // sprintf(command, "cp -f tmp/mountlist.txt /tmp"); … … 1366 1366 1367 1367 case 0: 1368 log_to_screen( ("Pre-processing filelist"));1368 log_to_screen("Pre-processing filelist"); 1369 1369 if (!does_file_exist(g_biggielist_txt)) { 1370 1370 sprintf(command, "> %s", g_biggielist_txt); … … 1378 1378 1379 1379 default: 1380 open_evalcall_form( _("Pre-processing filelist"));1380 open_evalcall_form("Pre-processing filelist"); 1381 1381 while (!waitpid(pid, (int *) 0, WNOHANG)) { 1382 1382 usleep(100000); … … 1391 1391 unlink(g_filelist_full); 1392 1392 if (g_text_mode) { 1393 printf( _("Restore which directory? --> "));1393 printf("Restore which directory? --> "); 1394 1394 fgets(tmp, sizeof(tmp), stdin); 1395 1395 toggle_path_selection(filelist, tmp, TRUE); … … 1524 1524 else { 1525 1525 log_to_screen 1526 ( _("Unable to determine type of boot loader. Defaulting to LILO."));1526 ("Unable to determine type of boot loader. Defaulting to LILO."); 1527 1527 res = run_lilo(offer_to_hack_scripts); 1528 1528 } … … 1530 1530 retval += res; 1531 1531 if (res) { 1532 log_to_screen( _("Your boot loader returned an error"));1532 log_to_screen("Your boot loader returned an error"); 1533 1533 } else { 1534 log_to_screen( _("Your boot loader ran OK"));1534 log_to_screen("Your boot loader ran OK"); 1535 1535 } 1536 1536 paranoid_free(device); … … 1613 1613 } 1614 1614 if (offer_to_run_stabgrub 1615 && ask_me_yes_or_no( _("Did you change the mountlist?")))1615 && ask_me_yes_or_no("Did you change the mountlist?")) 1616 1616 /* interactive mode */ 1617 1617 { 1618 1618 mvaddstr_and_log_it(g_currentY, 1619 1619 0, 1620 _("Modifying fstab and grub.conf, and running GRUB... "));1620 "Modifying fstab and grub.conf, and running GRUB... "); 1621 1621 for (done = FALSE; !done;) { 1622 popup_and_get_string( _("Boot device"),1623 _("Please confirm/enter the boot device. If in doubt, try /dev/hda"),1622 popup_and_get_string("Boot device", 1623 "Please confirm/enter the boot device. If in doubt, try /dev/hda", 1624 1624 boot_device, MAX_STR_LEN / 4); 1625 1625 sprintf(command, "stabgrub-me %s", boot_device); … … 1627 1627 if (res) { 1628 1628 popup_and_OK 1629 ( _("GRUB installation failed. Please install manually using 'grub-install' or similar command. You are now chroot()'ed to your restored system. Please type 'exit' when you are done."));1629 ("GRUB installation failed. Please install manually using 'grub-install' or similar command. You are now chroot()'ed to your restored system. Please type 'exit' when you are done."); 1630 1630 newtSuspend(); 1631 1631 system("chroot " MNT_RESTORING); 1632 1632 newtResume(); 1633 popup_and_OK( _("Thank you."));1633 popup_and_OK("Thank you."); 1634 1634 } else { 1635 1635 done = TRUE; 1636 1636 } 1637 popup_and_OK( _("You will now edit fstab and grub.conf"));1637 popup_and_OK("You will now edit fstab and grub.conf"); 1638 1638 if (!g_text_mode) { 1639 1639 newtSuspend(); … … 1652 1652 mvaddstr_and_log_it(g_currentY, 1653 1653 0, 1654 _("Running GRUB... "));1654 "Running GRUB... "); 1655 1655 iamhere(command); 1656 1656 res = run_program_and_log_output(command, 1); 1657 1657 if (res) { 1658 1658 popup_and_OK 1659 ( _("Because of bugs in GRUB's own installer, GRUB was not installed properly. Please install the boot loader manually now, using this chroot()'ed shell prompt. Type 'exit' when you have finished."));1659 ("Because of bugs in GRUB's own installer, GRUB was not installed properly. Please install the boot loader manually now, using this chroot()'ed shell prompt. Type 'exit' when you have finished."); 1660 1660 newtSuspend(); 1661 1661 system("chroot " MNT_RESTORING); 1662 1662 newtResume(); 1663 popup_and_OK( _("Thank you."));1663 popup_and_OK("Thank you."); 1664 1664 } 1665 1665 } 1666 1666 if (res) { 1667 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1667 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1668 1668 log_to_screen 1669 ( _("GRUB ran w/error(s). See /tmp/mondo-restore.log for more info."));1669 ("GRUB ran w/error(s). See /tmp/mondo-restore.log for more info."); 1670 1670 log_msg(1, "Type:-"); 1671 1671 log_msg(1, " mount-me"); … … 1678 1678 "If you're really stuck, please e-mail the mailing list."); 1679 1679 } else { 1680 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1680 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1681 1681 } 1682 1682 paranoid_free(rootdev); … … 1716 1716 strcpy(editor, find_my_editor()); 1717 1717 if (offer_to_run_stabelilo 1718 && ask_me_yes_or_no( _("Did you change the mountlist?")))1718 && ask_me_yes_or_no("Did you change the mountlist?")) 1719 1719 1720 1720 /* interactive mode */ … … 1722 1722 mvaddstr_and_log_it(g_currentY, 1723 1723 0, 1724 _("Modifying fstab and elilo.conf... "));1724 "Modifying fstab and elilo.conf... "); 1725 1725 sprintf(command, "stabelilo-me"); 1726 1726 res = run_program_and_log_output(command, 3); 1727 1727 if (res) { 1728 1728 popup_and_OK 1729 ( _("You will now edit fstab and elilo.conf, to make sure they match your new mountlist."));1729 ("You will now edit fstab and elilo.conf, to make sure they match your new mountlist."); 1730 1730 for (done = FALSE; !done;) { 1731 1731 if (!g_text_mode) { … … 1741 1741 } 1742 1742 // newtCls(); 1743 if (ask_me_yes_or_no( _("Edit them again?"))) {1743 if (ask_me_yes_or_no("Edit them again?")) { 1744 1744 continue; 1745 1745 } … … 1747 1747 } 1748 1748 } else { 1749 log_to_screen( _("elilo.conf and fstab were modified OK"));1749 log_to_screen("elilo.conf and fstab were modified OK"); 1750 1750 } 1751 1751 } else … … 1791 1791 strcpy(editor, find_my_editor()); 1792 1792 if (offer_to_run_stablilo 1793 && ask_me_yes_or_no( _("Did you change the mountlist?")))1793 && ask_me_yes_or_no("Did you change the mountlist?")) 1794 1794 1795 1795 /* interactive mode */ … … 1797 1797 mvaddstr_and_log_it(g_currentY, 1798 1798 0, 1799 _("Modifying fstab and lilo.conf, and running LILO... "));1799 "Modifying fstab and lilo.conf, and running LILO... "); 1800 1800 sprintf(command, "stablilo-me"); 1801 1801 res = run_program_and_log_output(command, 3); 1802 1802 if (res) { 1803 1803 popup_and_OK 1804 ( _("You will now edit fstab and lilo.conf, to make sure they match your new mountlist."));1804 ("You will now edit fstab and lilo.conf, to make sure they match your new mountlist."); 1805 1805 for (done = FALSE; !done;) { 1806 1806 if (!g_text_mode) { … … 1815 1815 } 1816 1816 // newtCls(); 1817 if (ask_me_yes_or_no( _("Edit them again?"))) {1817 if (ask_me_yes_or_no("Edit them again?")) { 1818 1818 continue; 1819 1819 } … … 1829 1829 done = 1830 1830 ask_me_yes_or_no 1831 ( _("LILO failed. Re-edit system files?"));1831 ("LILO failed. Re-edit system files?"); 1832 1832 } else { 1833 1833 done = TRUE; … … 1835 1835 } 1836 1836 } else { 1837 log_to_screen( _("lilo.conf and fstab were modified OK"));1837 log_to_screen("lilo.conf and fstab were modified OK"); 1838 1838 } 1839 1839 } else … … 1842 1842 mvaddstr_and_log_it(g_currentY, 1843 1843 0, 1844 _("Running LILO... "));1844 "Running LILO... "); 1845 1845 res = 1846 1846 run_program_and_log_output("chroot " MNT_RESTORING " lilo -L", … … 1852 1852 } 1853 1853 if (res) { 1854 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1854 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1855 1855 log_to_screen 1856 ( _("Failed to re-jig fstab and/or lilo. Edit/run manually, please."));1856 ("Failed to re-jig fstab and/or lilo. Edit/run manually, please."); 1857 1857 } else { 1858 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1858 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1859 1859 } 1860 1860 } … … 1904 1904 1905 1905 if (offer_to_hack_scripts 1906 && ask_me_yes_or_no( _("Did you change the mountlist?")))1906 && ask_me_yes_or_no("Did you change the mountlist?")) 1907 1907 /* interactive mode */ 1908 1908 { 1909 1909 mvaddstr_and_log_it(g_currentY, 0, 1910 _("Modifying fstab and restoring MBR... "));1910 "Modifying fstab and restoring MBR... "); 1911 1911 for (done = FALSE; !done;) { 1912 1912 if (!run_program_and_log_output("which vi", FALSE)) { 1913 popup_and_OK( _("You will now edit fstab"));1913 popup_and_OK("You will now edit fstab"); 1914 1914 if (!g_text_mode) { 1915 1915 newtSuspend(); … … 1922 1922 // newtCls(); 1923 1923 } 1924 popup_and_get_string( _("Boot device"),1925 _("Please confirm/enter the boot device. If in doubt, try /dev/hda"),1924 popup_and_get_string("Boot device", 1925 "Please confirm/enter the boot device. If in doubt, try /dev/hda", 1926 1926 boot_device, MAX_STR_LEN / 4); 1927 1927 sprintf(command, "stabraw-me %s", boot_device); 1928 1928 res = run_program_and_log_output(command, 3); 1929 1929 if (res) { 1930 done = ask_me_yes_or_no( _("Modifications failed. Re-try?"));1930 done = ask_me_yes_or_no("Modifications failed. Re-try?"); 1931 1931 } else { 1932 1932 done = TRUE; … … 1937 1937 { 1938 1938 mvaddstr_and_log_it(g_currentY, 0, 1939 _("Restoring MBR... "));1939 "Restoring MBR... "); 1940 1940 res = run_program_and_log_output(command, 3); 1941 1941 } 1942 1942 if (res) { 1943 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));1943 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 1944 1944 log_to_screen 1945 ( _("MBR+fstab processed w/error(s). See /tmp/mondo-restore.log for more info."));1945 ("MBR+fstab processed w/error(s). See /tmp/mondo-restore.log for more info."); 1946 1946 } else { 1947 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));1947 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1948 1948 } 1949 1949 paranoid_free(command); … … 2085 2085 { 2086 2086 log_to_screen 2087 ( _("Mondorestore is terminating in response to a signal from the OS"));2087 ("Mondorestore is terminating in response to a signal from the OS"); 2088 2088 paranoid_MR_finish(254); 2089 2089 } … … 2107 2107 return; 2108 2108 } 2109 open_progress_form( _("CAUTION"),2110 _("Be advised: I am about to ERASE your hard disk(s)!"),2111 _("You may press Ctrl+Alt+Del to abort safely."),2109 open_progress_form("CAUTION", 2110 "Be advised: I am about to ERASE your hard disk(s)!", 2111 "You may press Ctrl+Alt+Del to abort safely.", 2112 2112 "", 20); 2113 2113 for (i = 0; i < 20; i++) { 2114 2114 g_current_progress = i; 2115 sprintf(tmp, _("You have %d seconds left to abort."), 20 - i);2115 sprintf(tmp, "You have %d seconds left to abort.", 20 - i); 2116 2116 update_progress_form(tmp); 2117 2117 sleep(1); … … 2169 2169 2170 2170 run_program_and_log_output("df -P -m", 3); 2171 mvaddstr_and_log_it(g_currentY, 0, _("Unmounting devices "));2172 open_progress_form( _("Unmounting devices"),2173 _("Unmounting all devices that were mounted,"),2174 _("in preparation for the post-restoration reboot."),2171 mvaddstr_and_log_it(g_currentY, 0, "Unmounting devices "); 2172 open_progress_form("Unmounting devices", 2173 "Unmounting all devices that were mounted,", 2174 "in preparation for the post-restoration reboot.", 2175 2175 "", mountlist->entries); 2176 2176 chdir("/"); … … 2205 2205 continue; 2206 2206 } 2207 sprintf(tmp, _("Unmounting device %s "), mountlist->el[lino].device);2207 sprintf(tmp, "Unmounting device %s ", mountlist->el[lino].device); 2208 2208 2209 2209 update_progress_form(tmp); … … 2224 2224 res = run_program_and_log_output(command, 3); 2225 2225 } else { 2226 strcat(tmp, _("...not mounted anyway :-) OK"));2226 strcat(tmp, "...not mounted anyway :-) OK"); 2227 2227 res = 0; 2228 2228 } 2229 2229 g_current_progress++; 2230 2230 if (res) { 2231 strcat(tmp, _("...Failed"));2231 strcat(tmp, "...Failed"); 2232 2232 retval++; 2233 2233 log_to_screen(tmp); … … 2238 2238 close_progress_form(); 2239 2239 if (retval) { 2240 mvaddstr_and_log_it(g_currentY++, 74, _("Failed."));2240 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 2241 2241 } else { 2242 mvaddstr_and_log_it(g_currentY++, 74, _("Done."));2242 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2243 2243 } 2244 2244 if (retval) { 2245 log_to_screen( _("Unable to unmount some of your partitions."));2245 log_to_screen("Unable to unmount some of your partitions."); 2246 2246 } else { 2247 log_to_screen( _("All partitions were unmounted OK."));2247 log_to_screen("All partitions were unmounted OK."); 2248 2248 } 2249 2249 free(mountlist); … … 2328 2328 malloc_string(tmp); 2329 2329 log_msg(2, "gcffa --- starting"); 2330 log_to_screen( _("I'm thinking..."));2330 log_to_screen("I'm thinking..."); 2331 2331 sprintf(mountpt, "%s/mount.bootdisk", bkpinfo->tmpdir); 2332 2332 device[0] = '\0'; … … 2439 2439 2440 2440 if (!does_file_exist("tmp/mondo-restore.cfg")) { 2441 log_to_screen( _("Cannot find config info on tape/CD/floppy"));2441 log_to_screen("Cannot find config info on tape/CD/floppy"); 2442 2442 return (1); 2443 2443 } … … 2520 2520 log_msg(1, "%s not found", cfg_file); 2521 2521 log_to_screen 2522 ( _("Oh dear. Unable to recover configuration file from boot disk"));2522 ("Oh dear. Unable to recover configuration file from boot disk"); 2523 2523 return (1); 2524 2524 } 2525 2525 2526 log_to_screen( _("Recovered mondo-restore.cfg"));2526 log_to_screen("Recovered mondo-restore.cfg"); 2527 2527 if (!does_file_exist(MOUNTLIST_FNAME_STUB)) { 2528 log_to_screen( _("...but not mountlist.txt - a pity, really..."));2528 log_to_screen("...but not mountlist.txt - a pity, really..."); 2529 2529 } 2530 2530 /* start SAH */ … … 2596 2596 while (unfinished_mdstat_devices > 0) { 2597 2597 if (read_mdstat(mdstat, mdstat_file)) { 2598 log_to_screen( _("Sorry, cannot read %s"), mdstat_file);2598 log_to_screen("Sorry, cannot read %s", mdstat_file); 2599 2599 return; 2600 2600 } … … 2602 2602 if (mdstat->el[i].progress < wait_for_percentage) { 2603 2603 unfinished_mdstat_devices++; 2604 sprintf(screen_message, _("Sync'ing /dev/md%d"),2604 sprintf(screen_message, "Sync'ing /dev/md%d", 2605 2605 mdstat->el[i].md); 2606 2606 open_evalcall_form(screen_message); -
branches/stable/tools/deb-env
r530 r541 19 19 dname=`dirname $0` 20 20 21 22 21 # TBD 23 22 export TOPDIR=${BASE}/debs 24 23 mkdir -p ${TOPDIR} 25 export opt=""26 export pkg=""27 export ARCH=""28 24 29 25 if [ -e /etc/debian-release ]; then 30 export dfam="debian"31 26 export ddir="debian" 32 27 export dver=`awk '{print $4}' /etc/debian-release` -
branches/stable/tools/livwww
r509 r541 16 16 TESTDIR=/mondo/www/html/test 17 17 18 force= 118 force=0 19 19 nodoc=0 20 20 21 if [ "$1" = "- -keep" ]; then22 force= 021 if [ "$1" = "-f" ]; then 22 force=1 23 23 optsvn="" 24 24 shift … … 35 35 DESTMACH=mondo.hpintelco.org 36 36 else 37 DESTMACH=www .mondorescue.org37 DESTMACH=www1.mondorescue.org 38 38 fi 39 39 -
branches/stable/tools/mkcommon
r530 r541 2 2 # 3 3 # Prepare build env common for all packages build process from SVN repository 4 # Also prepare the documentation which is common5 4 # 6 5 # $Id$ … … 9 8 umask 022 10 9 10 echo "Generating SVN log file ..." 11 11 cd $TOOLHOME/.. 12 echo "Generating SVN log file ..."13 12 svn log -v > /tmp/mondorescue-svn.log 14 13 15 14 if [ "$1" = "" ]; then 16 c="mondo-docmindi mondo"15 c="mindi mondo" 17 16 else 18 if [ "$1" = "all" ]; then 19 c="mindi-kernel mondo-doc mindi mondo" 20 else 21 c=$1 22 fi 17 c=$1 23 18 fi 24 19 if [ "`echo $c | grep mindi-kernel`" != "" ]; then … … 33 28 tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER} 34 29 fi 35 36 #37 # Should be done before mindi38 #39 if [ "`echo $c | grep mondo-doc`" != "" ]; then40 cd ${BASE}/svn41 echo "Management of mondo-doc ${MONDO_VER}-$REVISION"42 rm -rf mondo-doc-${MONDO_VER}43 svn export ${VER}/documentation mondo-doc-${MONDO_VER}44 svn log -v ${VER}/documentation > mondo-doc-${MONDO_VER}/svn.log45 echo "$REVISION" > mondo-doc-${MONDO_VER}/REVISION46 cd mondo-doc-${MONDO_VER}47 $TOOLHOME/expandver mondorescue-howto.sgml *848 make -f Makefile.howto install INSTALLDIR=../mondo-docgen-${MONDO_VER}/docs/en49 if [ $? != 0 ]; then50 exit -151 fi52 make -f Makefile.man install-mondo INSTALLDIR=../mondo-docgen-${MONDO_VER}/docs/man53 if [ $? != 0 ]; then54 exit -155 fi56 cd ..57 58 echo "Creating mondo-doc tar files"59 tar cfhz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz mondo-doc-${MONDO_VER}60 tar cfhj ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 mondo-doc-${MONDO_VER}61 fi62 30 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then 63 31 cd ${BASE}/svn … … 66 34 svn export ${VER}/mindi mindi-${MINDI_VER} 67 35 cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log 68 (cd mondo-doc-${MONDO_VER} ; make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER}) 36 cp -a ${VER}/documentation/mindi.8 mindi-${MINDI_VER} 37 rm -rf documentation-${MONDO_VER} 38 svn export ${VER}/documentation documentation-${MONDO_VER} 39 cd documentation-${MONDO_VER} 40 $TOOLHOME/expandver mindi*8 41 make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER} 42 cd .. 69 43 echo "$REVISION" > mindi-${MINDI_VER}/REVISION 70 44 rm -f mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64 … … 75 49 rm -f ${TMP}/mindi-*-root 76 50 fi 77 if [ "`echo $c | grep -v doc | grepmondo`" != "" ]; then51 if [ "`echo $c | grep mondo`" != "" ]; then 78 52 cd ${BASE}/svn 79 53 echo "Management of mondo ${MONDO_VER}-$REVISION" … … 82 56 cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log 83 57 echo "$REVISION" > mondo-${MONDO_VER}/REVISION 84 (cd mondo-doc-${MONDO_VER} ; make -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/docs/en ; make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man) 85 (cd mondo-${MONDO_VER} ; echo "Bootstraping mondo ... " ; ./bootstrap) 58 rm -rf documentation-${MONDO_VER} 59 svn export ${VER}/documentation documentation-${MONDO_VER} 60 cd documentation-${MONDO_VER} 61 $TOOLHOME/expandver mondorescue-howto.sgml mondo*8 62 make -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/docs/en 63 if [ $? != 0 ]; then 64 exit -1 65 fi 66 make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man 67 if [ $? != 0 ]; then 68 exit -1 69 fi 70 cd ../mondo-${MONDO_VER} 71 echo "Bootstraping mondo ... " 72 ./bootstrap 73 cd .. 86 74 87 75 echo "Creating mondo tar files" -
branches/stable/tools/mkdeb
r530 r541 28 28 cd ${BASE}/svn 29 29 mkdir -p ${TOPDIR}/SOURCES 30 $TOOLHOME/mkspec ${MINDI_VER} mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec 31 chmod 644 ${TOPDIR}/SPECS/mindi-kernel.spec 32 pkg1="${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm" 33 pkg="$pkg $pkg1" 34 rm -f $pkg1 30 sed "s/^%define mrel..*RRR/%define mrel ${REVISION}${suf}/" mindi-kernel-${MINDI_VER}/mindi-kernel.spec > ${TOPDIR}/SPECS/mindi-kernel.spec 31 pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-kernel-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm" 35 32 fi 36 33 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then 37 34 cd ${BASE}/svn 38 $TOOLHOME/mkspec ${MINDI_VER} mindi-${MINDI_VER}/distributions/rpm/mindi.spec > ${TOPDIR}/SPECS/mindi.spec 39 cat mindi-${MINDI_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mindi.spec 40 chmod 644 ${TOPDIR}/SPECS/mindi.spec 35 if [ -f mindi-${MINDI_VER}/distributions/${ddir}/mindi.spec ]; then 36 specfile=mindi-${MINDI_VER}/distributions/${ddir}/mindi.spec 37 else 38 specfile=mindi-${MINDI_VER}/distributions/common/mindi.spec 39 fi 40 sed -e "s/^%define mrel..*RRR/%define mrel ${REVISION}${suf}/" -e "s/VVV/${MINDI_VER}/" $specfile > ${TOPDIR}/SPECS/mindi.spec 41 41 rm -rf mindi-${MINDI_VER}/distributions 42 42 mkdir -p ${TOPDIR}/SOURCES 43 43 44 pkg 1="${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm"45 pkg="$pkg $pkg1"46 rm -f $pkg144 pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${REVISION}${suf}.${ARCH}.rpm" 45 # ATTENTION: This could be dangerous for your setup 46 opt="rm -rf /usr/lib/mindi ;" 47 47 fi 48 48 if [ "`echo $c | grep mondo`" != "" ]; then 49 49 cd ${BASE}/svn 50 $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.spec > ${TOPDIR}/SPECS/mondo.spec 51 cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mondo.spec 52 chmod 644 ${TOPDIR}/SPECS/mondo.spec 50 if [ -f mondo-${MONDO_VER}/distributions/${ddir}/mondo.spec ]; then 51 specfile=mondo-${MONDO_VER}/distributions/${ddir}/mondo.spec 52 else 53 specfile=mondo-${MONDO_VER}/distributions/common/mondo.spec 54 fi 55 sed -e "s/^%define mrel..*RRR/%define mrel ${REVISION}${suf}/" -e "s/VVV/${MONDO_VER}/" $specfile > ${TOPDIR}/SPECS/mondo.spec 53 56 rm -rf mondo-${MONDO_VER}/distributions 54 57 55 pkg1="${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm" 56 pkg="$pkg $pkg1" 57 rm -f $pkg1 58 pkg="$pkg ${TOPDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm" 58 59 fi 59 60 60 61 cd ${TOPDIR}/SPECS 61 62 status=0 62 for p in "$c"; do 63 echo "Generating $p deb" 64 log=/tmp/$p-deb.log 65 #rpmbuild -ba $p.spec 2> $log 1> $log 63 if [ "`echo $c | grep kernel`" != "" ]; then 64 echo "Generating mindi-kernel RPMS" 65 log=/tmp/mindi-kernel-rpm.log 66 rpmbuild -ba mindi-kernel.spec 2> $log 1> $log 67 if [ $? != 0 ]; then 68 cat $log 69 status=-1 70 fi 71 fi 72 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then 73 echo "Generating mindi RPMS" 74 log=/tmp/mindi-rpm.log 75 rpmbuild -ba mindi.spec 2> $log 1> $log 76 if [ $? != 0 ]; then 77 cat $log 78 status=-1 79 fi 80 fi 81 if [ "`echo $c | grep mondo`" != "" ]; then 82 echo "Generating mondo RPMS" 83 log=/tmp/mondo-rpm.log 84 rpmbuild -ba mondo.spec 2> $log 1> $log 66 85 if [ $? != 0 ]; then 67 86 cat $log … … 70 89 fi 71 90 if [ $status = 0 ]; then 72 echo "Installing debas root ($pkg)"91 echo "Installing RPMS as root ($pkg)" 73 92 su - -c "$opt rpm -Uvh --force $pkg" 74 93 fi -
branches/stable/tools/mkdeliv
r530 r541 8 8 # BerliOS FTP/SSH setup 9 9 ACCOUNT=bruno@ftp.mondorescue.org 10 DSTDIR=/ mondo/ftp10 DSTDIR=/ 11 11 FTPSERV="ftp.berlios.de" 12 12 FTPDIR="/incoming" … … 28 28 29 29 if [ "$1" = "" ]; then 30 c="mondo-docmindi mondo"30 c="mindi mondo" 31 31 else 32 32 c=$1 … … 39 39 srpms="$srpms ${TOPDIR}/SRPMS/mindi-${MINDI_VER}-${rev}${suf}.src.rpm" 40 40 fi 41 if [ "`echo $c | grep mondo-doc`" != "" ]; then 42 cp -a ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz 43 cp -a ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2 44 tgz="$tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2" 45 rpms="$rpms ${TOPDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm" 46 srpms="$srpms ${TOPDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm" 47 fi 48 if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then 41 if [ "`echo $c | grep mondo`" != "" ]; then 49 42 cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz 50 43 cp -a ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2 -
branches/stable/tools/mkrpm
r532 r541 18 18 19 19 if [ "$1" = "" ]; then 20 c="m ondo-doc mindi mondo"20 c="mindi mondo" 21 21 else 22 if [ "$1" = "all" ]; then 23 c="mindi-kernel mondo-doc mindi mondo" 24 else 25 c=$1 26 fi 22 c=$1 27 23 fi 28 24 … … 52 48 opt="rm -rf /usr/lib/mindi ;" 53 49 fi 54 if [ "`echo $c | grep mondo-doc`" != "" ]; then 55 cd ${BASE}/svn 56 $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo-doc.spec > ${TOPDIR}/SPECS/mondo-doc.spec 57 cat mondo-${MONDO_VER}/distributions/$dfam/changelog >> ${TOPDIR}/SPECS/mondo-doc.spec 58 chmod 644 ${TOPDIR}/SPECS/mondo-doc.spec 59 60 pkg1="${TOPDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${REVISION}${suf}.${ARCH}.rpm" 61 pkg="$pkg $pkg1" 62 rm -f $pkg1 63 fi 64 65 if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then 50 if [ "`echo $c | grep mondo`" != "" ]; then 66 51 cd ${BASE}/svn 67 52 $TOOLHOME/mkspec ${MONDO_VER} mondo-${MONDO_VER}/distributions/rpm/mondo.spec > ${TOPDIR}/SPECS/mondo.spec … … 77 62 cd ${TOPDIR}/SPECS 78 63 status=0 79 80 for p in $c; do 81 echo "Generating $p RPMS" 82 log=/tmp/$p-rpm.log 83 rpmbuild -ba $p.spec 2> $log 1> $log 64 if [ "`echo $c | grep kernel`" != "" ]; then 65 echo "Generating mindi-kernel RPMS" 66 log=/tmp/mindi-kernel-rpm.log 67 rpmbuild -ba mindi-kernel.spec 2> $log 1> $log 84 68 if [ $? != 0 ]; then 85 69 cat $log 86 70 status=-1 87 71 fi 88 done 72 fi 73 if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then 74 echo "Generating mindi RPMS" 75 log=/tmp/mindi-rpm.log 76 rpmbuild -ba mindi.spec 2> $log 1> $log 77 if [ $? != 0 ]; then 78 cat $log 79 status=-1 80 fi 81 fi 82 if [ "`echo $c | grep mondo`" != "" ]; then 83 echo "Generating mondo RPMS" 84 log=/tmp/mondo-rpm.log 85 rpmbuild -ba mondo.spec 2> $log 1> $log 86 if [ $? != 0 ]; then 87 cat $log 88 status=-1 89 fi 90 fi 89 91 if [ $status = 0 ]; then 90 92 echo "Installing RPMS as root ($pkg)" -
branches/stable/tools/mkspec
r460 r541 12 12 if [ -f ${dir}/../$ddir/spec.m4 ]; then 13 13 inc=${dir}/../$ddir/spec.m4 14 elif [ -f ${dir}/../$d fam/spec.m4 ]; then15 inc=${dir}/../$d fam/spec.m414 elif [ -f ${dir}/../$ddmir/spec.m4 ]; then 15 inc=${dir}/../$ddmir/spec.m4 16 16 else 17 17 echo "Unable to build RPM for this distro. Please report to authors" … … 25 25 cat >> /tmp/mondorescue.mc << EOF 26 26 define(\`RRR', ${REVISION}${suf})dnl 27 define(\`EEE', ${REVISION})dnl28 27 define(\`VVV', ${1})dnl 29 28 EOF -
branches/stable/tools/rpm-env
r530 r541 9 9 prem=`echo $dname |cut -c1` 10 10 if [ ${prem} == "/" ]; then 11 11 export TOOLHOME=$dname 12 12 else 13 13 export TOOLHOME=${PWD}/$dname … … 56 56 export ddir="redhat" 57 57 dver=`awk '{print $5}' /etc/redhat-release` 58 export suf=".rh${dver}" 58 59 export dver=`echo ${dver} | sed "s/\.//"` 59 export suf=".rh${dver}"60 60 fi 61 61 elif [ -e /etc/SuSE-release ]; then -
branches/stable/website/about.shtml
r447 r541 90 90 <P ALIGN=CENTER> 91 91 <I>Michael Clark</I><BR> 92 original PDF docs</P>92 original DPF docs</P> 93 93 <div class="h2-5"> 94 94 <h2>The Mondo Rescue Community</h2> -
branches/stable/website/downloads.shtml
r466 r541 63 63 <p>Most of the time, you'll be able to download directly the packages suited for your distribution. Currently we provide packages for : 64 64 <ul> 65 <li>RedHat <a href="ftp://ftp.mondorescue.org/redhat/7.3">7.3</a> and <a href="ftp://ftp.mondorescue.org/redhat/9">9</a>.</li>66 <li>Fedora <a href="ftp://ftp.mondorescue.org/fedora/4">Core 4</a> and <a href="ftp://ftp.mondorescue.org/fedora/5">Core 5</a>.</li>65 <li>RedHat <a href="ftp://ftp.mondorescue.org/redhat/7.3">7.3</a>.</li> 66 <li>Fedora <a href="ftp://ftp.mondorescue.org/fedora/4">Core 4</a>.</li> 67 67 <li>RedHat Enterprise Linux <!--<a href="ftp://ftp.mondorescue.org/rhel/2.1">2.1</a>, --><a href="ftp://ftp.mondorescue.org/rhel/3">3</a>, <a href="ftp://ftp.mondorescue.org/rhel/4">4</a>.</li> 68 68 <li>OpenSuSE <a href="ftp://ftp.mondorescue.org/suse/9.3">9.3</a>, <a href="ftp://ftp.mondorescue.org/suse/10.0">10.0</a>. Look also at <a href="http://www.mikenjane.net/~mike/">this</a> web page for SuSE details. … … 76 76 <h3>Mondo Rescue CD</h3> 77 77 78 <p>In order to make it as easy as possible for you to use Mondo Rescue, you may want to download the latest <a href="ftp://ftp.mondorescue.org/iso/mondorescue.iso">Mondo Rescue CD</a> which contains all the packages with its dependancies available on the ftp site. It is updated daily (Currently un-available for bandwidth issues) 78 <p>In order to make it as easy as possible for you to use Mondo Rescue, you may want to download the latest <a href="ftp://ftp.mondorescue.org/iso/mondorescue.iso">Mondo Rescue CD</a> which contains all the packages with its dependancies available on the ftp site. It is updated daily. 79 79 80 <!-- 80 81 <div class="h2-5"> -
branches/stable/website/latest-news.html
r472 r541 1 <p><B>2006-04-08 </B>Mondo 2.0.7 / Mindi 1.0.7 updated to r460</p>2 <p>3 I'm happy to announce the availability of a newest version of4 mondo 2.0.7 / mindi 1.0.7 aka r4605 </p>6 7 <p>8 Now available at ftp://ftp.mondorescue.org/9 </p>10 11 <p>12 fedora/4/mindi-1.0.7-460.fc4.i386.rpm13 fedora/4/mondo-2.0.7-460.fc4.i386.rpm14 fedora/5/mindi-1.0.7-460.fc5.i386.rpm15 fedora/5/mondo-2.0.7-460.fc5.i386.rpm16 mandrake/10.1/mindi-1.0.7-460.101mdk.i386.rpm17 mandrake/10.1/mondo-2.0.7-460.101mdk.i386.rpm18 mandrake/10.2/mindi-1.0.7-460.102mdk.i386.rpm19 mandrake/10.2/mondo-2.0.7-460.102mdk.i386.rpm20 mandriva/2006.0/mindi-1.0.7-460.20060mdk.i586.rpm21 mandriva/2006.0/mondo-2.0.7-460.20060mdk.i586.rpm22 redhat/73/mindi-1.0.7-460.rh73.i386.rpm23 redhat/73/mondo-2.0.7-460.rh73.i386.rpm24 redhat/9/mindi-1.0.7-460.rh9.i386.rpm25 redhat/9/mondo-2.0.7-460.rh9.i386.rpm26 rhel/3/mindi-1.0.7-460.rhel3.i386.rpm27 rhel/3/mondo-2.0.7-460.rhel3.i386.rpm28 rhel/4/mindi-1.0.7-460.rhel4.i386.rpm29 rhel/4/mondo-2.0.7-460.rhel4.i386.rpm30 sles/9/mindi-1.0.7-460.sles9.i386.rpm31 sles/9/mondo-2.0.7-460.sles9.i386.rpm32 suse/10.0/mindi-1.0.7-464.suse10.0.i386.rpm33 suse/10.0/mondo-2.0.7-464.suse10.0.i386.rpm34 </p>35 36 37 <p>38 Changes are few:39 </p>40 41 <p>42 MONDO:43 </p>44 45 <p>46 Remove speed=1 for growisofs (better version expected for 2.0.8)47 Usage of Epoch for RPMs to ease update48 </p>49 50 <p>51 MINDI:52 </p>53 54 <p>55 analyze-my-lvm is under $MINDI_SBIN (not _LIB)56 Usage of Epoch for RPMs to ease update57 </p>58 59 <p><B>2006-03-20 </B>Mondo 2.0.7 / Mindi 1.0.7 are out</p>60 <p>61 I'm happy to announce the availability of the latest and greatest62 version of mondo 2.0.7 / mindi 1.0.7. Version numbers have changed of63 format to be more in line with what is done generally (x.y.z)64 </p>65 <p>66 Now available at ftp://ftp.mondorescue.org :67 </p>68 69 <p>70 mandrake/10.1/mindi-1.0.7-447.101mdk.i386.rpm<br>71 mandrake/10.1/mondo-2.0.7-447.101mdk.i386.rpm<br>72 mandrake/10.2/mindi-1.0.7-447.102mdk.i386.rpm<br>73 mandrake/10.2/mondo-2.0.7-447.102mdk.i386.rpm<br>74 mandriva/2006.0/mindi-1.0.7-447.20060mdk.i386.rpm<br>75 mandriva/2006.0/mondo-2.0.7-447.20060mdk.i386.rpm<br>76 src/mindi-1.0.7-r447.tgz<br>77 src/mondo-2.0.7-r447.tgz<br>78 </p>79 80 <p>81 Other distributions will follow asap (should be able to produce soon82 redhat 7.3, fedora core 4, and only after rhel3/4 and sles9) due to the83 change in the virtual machines I have to do (now using qemu + more tools84 to generate RPMs)85 </p>86 87 <p>88 The focus on this version has been more around the new website and89 documentation, and a bit less on code. So some persistant bugs are still90 not corrected (some dvd burning issues and dm/lvm2 support mainly) and91 will be hopefully in 2.0.8.92 </p>93 94 <p>95 MONDO CHANGES96 </p>97 98 <p>99 v2.07 (2006-02-23)<br>100 - useless cat, sort|uniq commands removed (Bruno Cornec/Sébastien Aperghis-Tramoni)<br>101 - Doc cleanup (Andree Leidenfrost)<br>102 - Add the actual format to messages after calls to function is_this_a_valid_disk_format() about unsupported formats. (Andree Leidenfrost)<br>103 - Abort|Warn when one of the include|exclude dirs (-I|-E) does not exist (Bruno Cornec/Jeffs)<br>104 - Replaced partimagehack with ntfsclone from ntfsprogs package. (Andree Leidenfrost)<br>105 - use df -P everywhere (Bruno Cornec)<br>106 - Paypal incitations removed (Andree Leidenfrost)<br>107 - mondo now uses /usr/share for the restore-scripts (Bruno Cornec)<br>108 - rpmlint cleanups (Bruno Cornec)<br>109 - no shared librairies and no X11 anymore (were useless) (Bruno Cornec)<br>110 - files > 2GB are now really supported (Andree Leidenfrost)<br>111 - new SGML based Mondo Rescue documentation + new Web site (Bruno Cornec/Andree Leidenfrost)<br>112 - mondoarchive aborts when 'mindi --findkernel' gives a fatal error (See also Debian bug #352323.) (Andree Leidenfrost)<br>113 - /tmp not excluded anymore from backup (Bruno Cornec)<br>114 - New RPM Build environement (Bruno Cornec)<br>115 </p>116 117 <p>118 MINDI CHANGES119 </p>120 121 <p>122 1.07 (2006-02-23)<br>123 - stop creating further size of floppy disks if the smaller one succeeds (Bruno Cornec)<br>124 - init revamped (removed unnecessary second general module loading phase, start NFS appropriately depending on PXE or simple NFS) (Andree Leidenfrost)<br>125 - Changed module 'nfsacl' to 'nfs_acl' (Andree Leidenfrost)<br>126 - Mindi/DiskSize is gone (Bruno Cornec)<br>127 - useless cat, sort|uniq commands removed (Bruno Cornec/Sébastien Aperghis-Tramoni)<br>128 - Doc cleanup (Andree Leidenfrost)<br>129 - Bug fix for chown in install.sh (JeffS)<br>130 - CHANGES renamed also in install.sh now (Bruno Cornec)<br>131 - rpmlint cleanups<br>132 - Get mindi to look for analyze-my-lvm in it's library directory MINDI_LIB (See also Debian bug #351446.)<br>133 - mindi only deletes freshly created 1440kb images in case of error (See also Debian Bug #348966.) (Andree Leidenfrost)<br>134 - try standard grub-install in grub-MR restore script before trying anything fancy (Andree Leidenfrost)<br>135 - busybox mount should be called with -o ro for PXE (Make RHEL 3 works in PXE with a 2.6 failsafe kernel now available) (Bruno Cornec)<br>136 - Fix mindi for 2.6 Failsafe support (Bruno Cornec)<br>137 - mindi now depends on grep >= 2.5 (for -m option) (Marco Puggelli/Bruno Cornec)<br>138 - Fix a bug in LVM context for RHEL4 in GetValueFromField (Rémi Bondoin/Bruno Cornec)<br>139 - New RPM Build environement (Bruno Cornec)<br>140 - mindi now supports x86_64 natively (Bruno Cornec)<br>141 - stop creating further size of floppy disks if the smaller one succeeds (Bruno Cornec)<br>142 </p>143 144 1 <p><B>2006-02-21 </B>Mondo Rescue has a new Web site</p> 145 2 <p>Thanks to <a href="http://www.73lab.com">Ayo</a>'s authorization, and after 2 weeks of hard work, we are proud to announce that we now have a new and updated Web site. We hope it will be useful and wait for your feedback.</p> … … 148 5 <p>Mondorescue has been officially referenced by the HP OpenSource Portal: 149 6 <a href="http://opensource.hp.com/index.php">http://opensource.hp.com/index.php</a> (look in the "Recently released" area)</p> 7 <p><B>2006-02-02 </B>Mondo Rescue rsync server available</p> 8 <p>In our always increasing set of services :-) I'd like to announce the 9 availability of an rsync mirror service for mondo-rescue. 150 10 11 Try rsync rsync.mondorescue.org::</p> 12 <p><B>2006-02-01 </B>Mondo Rescue ftp server available</p> 13 <p>Things are progressing. I've gathered all the packages that were originally on <a href="http://www.mondorescue.org">http://www.mondorescue.org</a> and also added Mike's SuSE RPMs 14 + all the latest packages I've produced and put them on a new ftp server 15 accessible at <a href="ftp://ftp.mondorescue.org">ftp://ftp.mondorescue.org</a> 16 </p><p> 17 You may have issues to access to it yet, as I've done a DNS refresh this 18 night and propagation could not be made everywhere now. 19 20 FYI: 21 22 </p><p> 23 $ host ftp.mondorescue.org<br> 24 ftp.mondorescue.org has address 213.30.161.23 25 </p><p> 26 27 The tree is: 28 </p><p> 29 level one distribution<br> 30 level two version number<br> 31 level three the packages 32 33 </p><p> 34 Feel free to send me (by private mail) packages that you have and that 35 are not in the repository, so that I can add them. 36 37 </p><p> 38 Thanks to HP and especially the HP/Intel Solution Center to help me 39 hosting the project. 40 41 Next step will be the Web site.</p> -
branches/stable/website/mondorescue.org.conf
r447 r541 2 2 # Apache Virtual Host Configuration File 3 3 # 4 NameVirtualHost * 4 NameVirtualHost *:80 5 5 6 <VirtualHost * >6 <VirtualHost *:80> 7 7 ServerName www.mondorescue.org 8 #ServerAlias mondorescue.org9 8 ServerAdmin webmaster@mondorescue.org 10 9 DocumentRoot /mondo/www/html/mondo 11 10 CustomLog /var/log/httpd/www.mondorescue.org/access_log combined 12 11 Errorlog /var/log/httpd/www.mondorescue.org/error_log 13 RewriteEngine On14 RewriteRule ^/index\.html$ /index.shtml15 RewriteRule ^/$ /index.shtml16 12 <Directory "/mondo/www/html/mondo"> 17 DirectoryIndex index.shtml18 13 Options -Indexes MultiViews FollowSymLinks +Includes 19 14 AllowOverride None … … 23 18 </VirtualHost> 24 19 25 <VirtualHost *> 26 ServerName oldwww.mondorescue.org 27 ServerAdmin webmaster@mondorescue.org 28 DocumentRoot /mondo/www/html/oldwww 29 CustomLog /var/log/httpd/oldwww.mondorescue.org/access_log combined 30 Errorlog /var/log/httpd/oldwww.mondorescue.org/error_log 31 <Directory "/mondo/www/html/oldwww"> 32 Options -Indexes MultiViews FollowSymLinks +Includes 33 AllowOverride None 34 Order allow,deny 35 Allow from all 36 </Directory> 37 </VirtualHost> 38 39 <VirtualHost *> 20 <VirtualHost *:80> 40 21 ServerName www1.mondorescue.org 41 22 ServerAdmin webmaster@mondorescue.org … … 50 31 </Directory> 51 32 </VirtualHost> 52 53 <VirtualHost *>54 ServerName www.mondorescue.com55 ServerAdmin webmaster@mondorescue.com56 DocumentRoot /mondo/www/html/mondo57 CustomLog /var/log/httpd/www.mondorescue.com/access_log combined58 Errorlog /var/log/httpd/www.mondorescue.com/error_log59 <Directory "/mondo/www/html/mondo">60 DirectoryIndex index.shtml61 Options -Indexes MultiViews FollowSymLinks +Includes62 AllowOverride None63 Order allow,deny64 Allow from all65 </Directory>66 </VirtualHost> -
branches/stable/website/news.shtml
r469 r541 14 14 </div> 15 15 <!--#include virtual="/latest-news.html" --> 16 <p><B>2006-02-02 </B>Mondo Rescue rsync server available</p>17 <p>In our always increasing set of services :-) I'd like to announce the18 availability of an rsync mirror service for mondo-rescue.19 20 Try rsync rsync.mondorescue.org::</p>21 22 <p><B>2006-02-01 </B>Mondo Rescue ftp server available</p>23 <p>Things are progressing. I've gathered all the packages that were originally on <a href="http://www.mondorescue.org">http://www.mondorescue.org</a> and also added Mike's SuSE RPMs24 + all the latest packages I've produced and put them on a new ftp server25 accessible at <a href="ftp://ftp.mondorescue.org">ftp://ftp.mondorescue.org</a>26 </p><p>27 You may have issues to access to it yet, as I've done a DNS refresh this28 night and propagation could not be made everywhere now.29 30 FYI:31 32 </p><p>33 $ host ftp.mondorescue.org<br>34 ftp.mondorescue.org has address 213.30.161.2335 </p><p>36 37 The tree is:38 </p><p>39 level one distribution<br>40 level two version number<br>41 level three the packages42 43 </p><p>44 Feel free to send me (by private mail) packages that you have and that45 are not in the repository, so that I can add them.46 47 </p><p>48 Thanks to HP and especially the HP/Intel Solution Center to help me49 hosting the project.50 51 Next step will be the Web site.</p>52 53 <div class="h2-2">54 <h2>Older News</h2>55 </div>56 57 16 <p><B>2005-12-24</B> 58 17 I think that it's time to promote our revisions to a newer version, as a … … 162 121 </p> 163 122 123 <div class="h2-2"> 124 <h2>Older News</h2> 125 </div> 126 164 127 <p><B>2005-11-22</B> 165 128
Note:
See TracChangeset
for help on using the changeset viewer.