[yast-commit] r62433 - in /trunk/installation: src/clients/inst_pre_install.ycp src/inst_finish/umount_finish.ycp src/modules/ImageInstallation.ycp src/modules/SystemFilesCopy.ycp startup/First-Stage/F09-start
Author: elvigia Date: Wed Aug 25 15:58:20 2010 New Revision: 62433 URL: http://svn.opensuse.org/viewcvs/yast?rev=62433&view=rev Log: Use "noatime" during installation Modified: trunk/installation/src/clients/inst_pre_install.ycp trunk/installation/src/inst_finish/umount_finish.ycp trunk/installation/src/modules/ImageInstallation.ycp trunk/installation/src/modules/SystemFilesCopy.ycp trunk/installation/startup/First-Stage/F09-start Modified: trunk/installation/src/clients/inst_pre_install.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_pre_install.ycp?rev=62433&r1=62432&r2=62433&view=diff ============================================================================== --- trunk/installation/src/clients/inst_pre_install.ycp (original) +++ trunk/installation/src/clients/inst_pre_install.ycp Wed Aug 25 15:58:20 2010 @@ -135,7 +135,7 @@ } // mounting read-only - if (! (boolean) SCR::Execute(.target.mount, [partition_device, mnt_tmpdir], "-o ro")) { + if (! (boolean) SCR::Execute(.target.mount, [partition_device, mnt_tmpdir], "-o ro,noatime")) { y2error("Mounting falied!"); return; } Modified: trunk/installation/src/inst_finish/umount_finish.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/inst_finish/umount_finish.ycp?rev=62433&r1=62432&r2=62433&view=diff ============================================================================== --- trunk/installation/src/inst_finish/umount_finish.ycp (original) +++ trunk/installation/src/inst_finish/umount_finish.ycp Wed Aug 25 15:58:20 2010 @@ -104,7 +104,7 @@ y2milestone ("Cmd: '%1' Ret: %2", cmd, WFM::Execute (.local.bash_output, cmd)); } else { y2warning ("Umount failed, trying to remount read only..."); - string cmd = sformat ("sync; mount -o remount,ro '%1'; umount -l -f '%1';", String::Quote (umount_this)); + string cmd = sformat ("sync; mount -o remount,noatime,ro '%1'; umount -l -f '%1';", String::Quote (umount_this)); y2milestone ("Cmd: '%1' Ret: %2", cmd, WFM::Execute (.local.bash_output, cmd)); } } @@ -146,7 +146,7 @@ y2milestone ("Cmd: '%1' Ret: %2", cmd, WFM::Execute (.local.bash_output, cmd)); } else { y2warning ("Umount failed, trying to remount read only..."); - string cmd = sformat ("mount -o remount,ro '%1'; umount -l -f '%1';", String::Quote (tmp)); + string cmd = sformat ("mount -o remount,ro,noatime '%1'; umount -l -f '%1';", String::Quote (tmp)); y2milestone ("Cmd: '%1' Ret: %2", cmd, WFM::Execute (.local.bash_output, cmd)); } } Modified: trunk/installation/src/modules/ImageInstallation.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/modules/ImageInstallation.ycp?rev=62433&r1=62432&r2=62433&view=diff ============================================================================== --- trunk/installation/src/modules/ImageInstallation.ycp (original) +++ trunk/installation/src/modules/ImageInstallation.ycp Wed Aug 25 15:58:20 2010 @@ -376,7 +376,7 @@ y2milestone ("Executing %1 returned %2", cmd, out); y2milestone ("Mounting the image"); - cmd = sformat ("mount -o loop %1 %2", image, tmpdir); + cmd = sformat ("mount -o noatime,loop %1 %2", image, tmpdir); out = (map)SCR::Execute (.target.bash_output, cmd); y2milestone ("Executing %1 returned %2", cmd, out); @@ -426,7 +426,7 @@ string cmd = sformat ("test -d %1 || mkdir -p %1", target); map out = (map)SCR::Execute (.target.bash_output, cmd); y2milestone ("Executing %1 returned %2", cmd, out); - cmd = sformat ("mount -o loop %1 %2", image, target); + cmd = sformat ("mount -o noatime,loop %1 %2", image, target); out = (map)SCR::Execute (.target.bash_output, cmd); y2milestone ("Executing %1 returned %2", cmd, out); return out["exit"]:-1 == 0; Modified: trunk/installation/src/modules/SystemFilesCopy.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/modules/SystemFilesCopy.ycp?rev=62433&r1=62432&r2=62433&view=diff ============================================================================== --- trunk/installation/src/modules/SystemFilesCopy.ycp (original) +++ trunk/installation/src/modules/SystemFilesCopy.ycp Wed Aug 25 15:58:20 2010 @@ -140,7 +140,7 @@ ); y2milestone("Mounting %1 to %2", partition, tmp_mount_directory); - if (! (boolean) SCR::Execute(.target.mount, [partition, tmp_mount_directory], "-o ro")) { + if (! (boolean) SCR::Execute(.target.mount, [partition, tmp_mount_directory], "-o ro,noatime")) { y2error("Mounting failed!"); return false; } Modified: trunk/installation/startup/First-Stage/F09-start URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/startup/First-Stage/F09-start?rev=62433&r1=62432&r2=62433&view=diff ============================================================================== --- trunk/installation/startup/First-Stage/F09-start (original) +++ trunk/installation/startup/First-Stage/F09-start Wed Aug 25 15:58:20 2010 @@ -23,7 +23,7 @@ if [ -r /update/y2update/y2update.gz ] ; then gunzip -c /update/y2update/y2update.gz > /dev/ram5 mkdir -p /y2update - if mount /dev/ram5 /y2update ; then + if mount -o noatime /dev/ram5 /y2update ; then log "\tPacked extension disk... OK" UPDATE_MOUNTED=true else -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
elvigia@svn2.opensuse.org