/[smeserver]/rpms/e-smith-base/sme8/e-smith-backup-5.2.0.bz9097.Test_Backup_MountPoint.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme8/e-smith-backup-5.2.0.bz9097.Test_Backup_MountPoint.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Oct 16 14:52:45 2015 UTC (9 years ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-base-5_2_0-97_el5_sme, HEAD
* Fri Oct 16 2015 Stephane de Labrusse <stephdl@de-labrusse.fr> 5.2.0-97.sme
- Verify the mountpoint during the console backup
- Added e-smith-backup-5.2.0.bz9097.Test_Backup_MountPoint.patch

1 diff -Nur e-smith-backup-2.4.0.bz9089.old/root/usr/share/perl5/vendor_perl/esmith/console/perform_backup.pm e-smith-backup-2.4.0.bz9089.new/root/usr/share/perl5/vendor_perl/esmith/console/perform_backup.pm
2 --- e-smith-backup-2.4.0.bz9089.old/root/usr/lib/perl5/site_perl/esmith/console/perform_backup.pm 2015-10-10 09:10:50.150741515 +0200
3 +++ e-smith-backup-2.4.0.bz9089.new/root/usr/lib/perl5/site_perl/esmith/console/perform_backup.pm 2015-10-10 09:12:18.621135152 +0200
4 @@ -207,7 +207,17 @@
5 my %args_hash = ( @args );
6 $device = $args_hash{$choice};
7 }
8 - system("/bin/mount", "$device", "/mnt/bootstrap-console-backup");
9 + unless ( system("/bin/mount", "$device", "/mnt/bootstrap-console-backup") == '0' )
10 + {
11 + ($rc, $choice) = $console->message_page
12 + (
13 + title => gettext("No mountable backup medium"),
14 + right => gettext("Back"),
15 + text =>
16 + gettext("Unable to mount removable media, please check the file system format (default : Vfat,Ext2,Ext3,Ext4)"),
17 + );
18 + goto INITIATE_BACKUP;
19 + }
20
21 use File::stat;
22 my $st = stat("/mnt/bootstrap-console-backup/smeserver.tgz");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed