From: Bernard Li <bl...@sy...> - 2006-01-10 05:08:18
|
Author: bli Date: 2006-01-10 03:19:15 -0600 (Tue, 10 Jan 2006) New Revision: 3399 Modified: branches/3.6.x/lib/SystemImager/Server.pm Log: Only umount sysfs if not on 2.4 kernel. Modified: branches/3.6.x/lib/SystemImager/Server.pm =================================================================== --- branches/3.6.x/lib/SystemImager/Server.pm 2006-01-10 06:40:03 UTC (rev 3398) +++ branches/3.6.x/lib/SystemImager/Server.pm 2006-01-10 09:19:15 UTC (rev 3399) @@ -1790,8 +1790,10 @@ # umount my $cmd = "umount /a$mp || shellout"; + print $out qq(if [ ! \$kernel = "2.4" ]; then\n) if ($mp eq "/sys"); print $out qq(logmsg "$cmd"\n); print $out "$cmd\n"; + print $out "fi\n" if ($mp eq "/sys"); print $out "\n"; } } |