diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-09-03 11:21:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-09-03 11:21:45 +0000 |
commit | 35e3a86a43b682a1a3b0996c691d9732a39b3a52 (patch) | |
tree | 21ea0cd8ee15bc2d6968294d7d99395be59fe3b9 /rescue/make_rescue_img | |
parent | 594aabbfa3c780b196357813b1d0b249e502334b (diff) | |
download | drakx-backup-do-not-use-35e3a86a43b682a1a3b0996c691d9732a39b3a52.tar drakx-backup-do-not-use-35e3a86a43b682a1a3b0996c691d9732a39b3a52.tar.gz drakx-backup-do-not-use-35e3a86a43b682a1a3b0996c691d9732a39b3a52.tar.bz2 drakx-backup-do-not-use-35e3a86a43b682a1a3b0996c691d9732a39b3a52.tar.xz drakx-backup-do-not-use-35e3a86a43b682a1a3b0996c691d9732a39b3a52.zip |
minimal adapt to /usr move
Diffstat (limited to 'rescue/make_rescue_img')
-rwxr-xr-x | rescue/make_rescue_img | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index 66deed0fa..fa5342f1f 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -20,6 +20,11 @@ _ "mkdir $tmp"; _ 'find . -name "*~" | xargs rm -f'; mkdir_p($tmp . chomp_($_)) foreach cat_("dirs"); _ "cp -a tree/* $tmp"; +# / -> /usr move +foreach (qw(bin sbin)) { + rename("$tmp/$_", "$tmp/usr/$_"); + symlinkf("usr/$_", "$tmp/$_"); +} _ "find $tmp -name .svn | xargs rm -rf"; substInFile { s/DISTRIB_DESCR/$ENV{DISTRIB_DESCR}/ } "$tmp/etc/issue"; |