diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-11-07 12:20:59 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-11-07 12:20:59 +0000 |
commit | cfc3dab900e934f41196532834f4025efad0891c (patch) | |
tree | d1176bfc76643ee2022c386aa1bea1237bbc2666 /move/tools | |
parent | 03a1a4e78acf57b9fef3a5b0956a076a3881b6fc (diff) | |
download | drakx-cfc3dab900e934f41196532834f4025efad0891c.tar drakx-cfc3dab900e934f41196532834f4025efad0891c.tar.gz drakx-cfc3dab900e934f41196532834f4025efad0891c.tar.bz2 drakx-cfc3dab900e934f41196532834f4025efad0891c.tar.xz drakx-cfc3dab900e934f41196532834f4025efad0891c.zip |
- add option --totem
- handle mounted /image
Diffstat (limited to 'move/tools')
-rwxr-xr-x | move/tools/busy-files | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/move/tools/busy-files b/move/tools/busy-files index a49b882c2..6275578ff 100755 --- a/move/tools/busy-files +++ b/move/tools/busy-files @@ -12,9 +12,13 @@ my @l = map { push @l, grep { $_ } map { (split)[5] } map { cat_("/proc/$_/maps") } @pids; +if ($ARGV[0] eq '--totem') { + @l = grep { m!/image(_boot)?/! } @l; + $ARGV[0] = '--server'; +} foreach (uniq @l) { if ($ARGV[0] eq '--server') { - s!/image_(always|boot|totem)!/tmp/live_tree!; + s!/image(_always|_boot|_totem)?/!/tmp/live_tree/!; s!/image_raw/live_tree!/tmp/live_tree!; } print "$_\n"; |