summaryrefslogtreecommitdiffstats
path: root/rescue/make_rescue_img
blob: 8e3f64334b7d71c3d9f3b618b4c2f3c826fbbc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/perl

use MDK::Common;
use lib "/usr/lib/libDrakX";
use keyboard;

my $tmp = "/tmp/rescue_tmp";
my $rescue = "rescue.sqfs";

if ($>) {
    $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}";
}

BEGIN { undef *_ }
sub __ { print @_, "\n"; system(@_) }
sub _ { __ @_; $? and die }

my $arch = arch() =~ /i.86/ ? $MDK::Common::System::compat_arch{arch()} : arch();
_ "rm -rf $tmp" if -e $tmp;
_ "mkdir -p $tmp";
_ "cp -a tree/* $tmp";
_ "find $tmp -name '*~' -delete";
mkdir_p($tmp . chomp_($_)) foreach cat_("dirs");
foreach (cat_("aliases")) {
    chomp; my ($f, $dest) = split;
    symlink $dest, "$tmp$f";
}
if ($arch eq "x86_64") {
    _ "mkdir $tmp/usr/lib64";
    _ "ln -s usr/lib64 $tmp/lib64";
}
substInFile { s/DISTRIB_DESCR/$ENV{DISTRIB_DESCR}/ } "$tmp/etc/issue";

_ "../tools/install-xml-file-list list.xml $tmp";

_ "sed 's/Mageia \\([0-9]*\\)/Mageia Rescue \\1/' /etc/os-release >$tmp/etc/os-release";
_ "ls -1 $tmp/etc | sed 's,\\(.*\\),/etc/\\1,' >>$tmp/usr/share/symlinks";
# Loading the floppy module causes this service to fail so lets mask this to
# prevent a red "FAILED" briefly showing on the screen
_ "sed -i s/ExecStart=/ExecStart=-/ $tmp/usr/lib/systemd/system/systemd-modules-load.service";

my %keytable_conflicts;
my @less_important_keytables = qw(am_old am_phonetic no-dvorak de-latin1);
foreach (keyboard::loadkeys_files(sub { warn @_ })) {
    my ($dir, $fname) = (dirname($_), basename($_));
    my ($name) = $fname =~ /(.*)\.map\.gz/ or next;
    next if member($name, @less_important_keytables);
    if (my ($short2, $short) = $name =~ m|((.+?)[\W_][^\W_]*)|) {
	$keytable_conflicts{$short} && $short2 ne $name and $short = $short2;
	$keytable_conflicts{$short} and warn("conflict between $keytable_conflicts{$short} and $name for short name $short (choosing the first)\n"), next;
	$keytable_conflicts{$short} = $name;
	# create the short name based on the long one
	symlinkf($fname, "$tmp$dir/$short.map.gz");
    }
}

if (my ($LANGUAGE) = map { if_(/LANGUAGE_(.*)/, $1) } keys %ENV) {
    substInFile {
	$_ = "export LANGUAGE=$LANGUAGE\n" . "export LC_ALL=$LANGUAGE\n" if /^#LANGUAGE/;	
    } "$tmp/usr/bin/mageia-rescue";
}

exit 0 if $ARGV[0];

_ "mksquashfs $tmp $rescue -all-root -noappend >/dev/null";
_ "chmod 755 $rescue";
#_ "rm -rf $tmp";
tr> -rw-r--r--perl-install/share/po/az.po4
-rw-r--r--perl-install/share/po/be.po4
-rw-r--r--perl-install/share/po/bg.po4
-rw-r--r--perl-install/share/po/bn.po4
-rw-r--r--perl-install/share/po/bs.po4
-rw-r--r--perl-install/share/po/ca.po4
-rw-r--r--perl-install/share/po/cs.po4
-rw-r--r--perl-install/share/po/cy.po4
-rw-r--r--perl-install/share/po/da.po4
-rw-r--r--perl-install/share/po/de.po4
-rw-r--r--perl-install/share/po/el.po4
-rw-r--r--perl-install/share/po/eo.po4
-rw-r--r--perl-install/share/po/es.po4
-rw-r--r--perl-install/share/po/et.po4
-rw-r--r--perl-install/share/po/eu.po4
-rw-r--r--perl-install/share/po/fa.po4
-rw-r--r--perl-install/share/po/fi.po4
-rw-r--r--perl-install/share/po/fr.po4
-rw-r--r--perl-install/share/po/fur.po2
-rw-r--r--perl-install/share/po/ga.po4
-rw-r--r--perl-install/share/po/gl.po4
-rw-r--r--perl-install/share/po/he.po4
-rw-r--r--perl-install/share/po/hi.po4
-rw-r--r--perl-install/share/po/hr.po4
-rw-r--r--perl-install/share/po/hu.po4
-rw-r--r--perl-install/share/po/id.po4
-rw-r--r--perl-install/share/po/is.po4
-rw-r--r--perl-install/share/po/it.po4
-rw-r--r--perl-install/share/po/ja.po4
-rw-r--r--perl-install/share/po/ko.po4
-rw-r--r--perl-install/share/po/ky.po2
-rw-r--r--perl-install/share/po/lt.po4
-rw-r--r--perl-install/share/po/ltg.po4
-rw-r--r--perl-install/share/po/lv.po4
-rw-r--r--perl-install/share/po/mk.po4
-rw-r--r--perl-install/share/po/mn.po4
-rw-r--r--perl-install/share/po/ms.po4
-rw-r--r--perl-install/share/po/mt.po4
-rw-r--r--perl-install/share/po/nb.po4
-rw-r--r--perl-install/share/po/nl.po4
-rw-r--r--perl-install/share/po/nn.po4
-rw-r--r--perl-install/share/po/pl.po4
-rw-r--r--perl-install/share/po/pt.po4
-rw-r--r--perl-install/share/po/pt_BR.po4
-rw-r--r--perl-install/share/po/ro.po4
-rw-r--r--perl-install/share/po/ru.po4
-rw-r--r--perl-install/share/po/sk.po4
-rw-r--r--perl-install/share/po/sl.po4
-rw-r--r--perl-install/share/po/sq.po4
-rw-r--r--perl-install/share/po/sr.po4
-rw-r--r--perl-install/share/po/sr@Latn.po4
-rw-r--r--perl-install/share/po/sv.po4
-rw-r--r--perl-install/share/po/ta.po4
-rw-r--r--perl-install/share/po/tg.po4
-rw-r--r--perl-install/share/po/th.po4
-rw-r--r--perl-install/share/po/tl.po4
-rw-r--r--perl-install/share/po/tr.po4
-rw-r--r--perl-install/share/po/uk.po4
-rw-r--r--perl-install/share/po/uz.po4
-rw-r--r--perl-install/share/po/uz@Latn.po4
-rw-r--r--perl-install/share/po/vi.po4
-rw-r--r--perl-install/share/po/wa.po4
-rw-r--r--perl-install/share/po/zh_CN.po4
-rw-r--r--perl-install/share/po/zh_TW.po4
69 files changed, 134 insertions, 134 deletions
diff --git a/perl-install/install_messages.pm b/perl-install/install_messages.pm
index cb7fe15ed..d804ab1fa 100644
--- a/perl-install/install_messages.pm
+++ b/perl-install/install_messages.pm
@@ -141,7 +141,7 @@ consult the Errata available from:
Information on configuring your system is available in the post
install chapter of the Official Mandrakelinux User's Guide.",
-N("http://www.mandrakelinux.com/en/102errata.php3"));
+N("http://www.mandrakelinux.com/en/errata.php3"));
}
1;
diff --git a/perl-install/share/po/DrakX.pot b/perl-install/share/po/DrakX.pot
index b821c796a..719f1fd41 100644
--- a/perl-install/share/po/DrakX.pot
+++ b/perl-install/share/po/DrakX.pot
@@ -4888,7 +4888,7 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
msgstr ""
#: install_steps.pm:246
diff --git a/perl-install/share/po/af.po b/perl-install/share/po/af.po
index b7e2eb5e2..d0283985d 100644
--- a/perl-install/share/po/af.po
+++ b/perl-install/share/po/af.po
@@ -6216,8 +6216,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/am.po b/perl-install/share/po/am.po
index b968e6217..ed73fb563 100644
--- a/perl-install/share/po/am.po
+++ b/perl-install/share/po/am.po
@@ -5132,8 +5132,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, fuzzy, c-format
diff --git a/perl-install/share/po/ar.po b/perl-install/share/po/ar.po
index 37d5bc915..9e898fb87 100644
--- a/perl-install/share/po/ar.po
+++ b/perl-install/share/po/ar.po
@@ -6382,8 +6382,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/az.po b/perl-install/share/po/az.po
index d8816bc1a..47317c59c 100644
--- a/perl-install/share/po/az.po
+++ b/perl-install/share/po/az.po
@@ -6371,8 +6371,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/be.po b/perl-install/share/po/be.po
index cd027b635..351d2cff6 100644
--- a/perl-install/share/po/be.po
+++ b/perl-install/share/po/be.po
@@ -5189,8 +5189,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/bg.po b/perl-install/share/po/bg.po
index 0f3ad472c..b425c2087 100644
--- a/perl-install/share/po/bg.po
+++ b/perl-install/share/po/bg.po
@@ -5983,8 +5983,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/bn.po b/perl-install/share/po/bn.po
index ffb4b5dac..643daa23b 100644
--- a/perl-install/share/po/bn.po
+++ b/perl-install/share/po/bn.po
@@ -5900,8 +5900,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/bs.po b/perl-install/share/po/bs.po
index c3ea20f6c..69f0ed84c 100644
--- a/perl-install/share/po/bs.po
+++ b/perl-install/share/po/bs.po
@@ -6498,8 +6498,8 @@ msgstr ""
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: install_messages.pm:144
#, c-format
-msgid "http://www.mandrakelinux.com/en/102errata.php3"
-msgstr "http://www.mandrakelinux.com/en/102errata.php3"
+msgid "http://www.mandrakelinux.com/en/errata.php3"
+msgstr "http://www.mandrakelinux.com/en/errata.php3"
#: install_steps.pm:246
#, c-format
diff --git a/perl-install/share/po/ca.po b/perl-install/share/po/ca.po
index 7625ac570..466692d89 100644
--- a/perl-install/share/po/ca.po
+++ b/perl-install/share/po/ca.po