summaryrefslogtreecommitdiffstats
path: root/mkinitrd-draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-29 01:15:01 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-29 01:15:01 +0000
commit08e2ffd5a39b5e93466f6192b19e3d1bd14c26f4 (patch)
tree75938f67a28a5ee79285f981df9aa10d6ff7e3c4 /mkinitrd-draklive
parent7e43fcbf4a4588f42bf8421b0a43d0ae90741fa1 (diff)
downloaddraklive-08e2ffd5a39b5e93466f6192b19e3d1bd14c26f4.tar
draklive-08e2ffd5a39b5e93466f6192b19e3d1bd14c26f4.tar.gz
draklive-08e2ffd5a39b5e93466f6192b19e3d1bd14c26f4.tar.bz2
draklive-08e2ffd5a39b5e93466f6192b19e3d1bd14c26f4.tar.xz
draklive-08e2ffd5a39b5e93466f6192b19e3d1bd14c26f4.zip
add initial mkinitrd-draklive prototype
Diffstat (limited to 'mkinitrd-draklive')
-rw-r--r--mkinitrd-draklive20
1 files changed, 20 insertions, 0 deletions
diff --git a/mkinitrd-draklive b/mkinitrd-draklive
new file mode 100644
index 0000000..f15d11c
--- /dev/null
+++ b/mkinitrd-draklive
@@ -0,0 +1,20 @@
+#!/usr/bin/perl
+
+use lib qw(/usr/lib/libDrakX);
+
+use MDV::Draklive::Live;
+use MDV::Draklive::Config;
+use MDV::Draklive::Initrd;
+
+my ($initrd, $kernel) = @ARGV;
+$initrd && $kernel or die "usage $0 <initrd> <kernel>\n";
+
+my $live = 'MDV::Draklive::Live'->new;
+MDV::Draklive::Config::read_config($live,
+ $MDV::Draklive::Config::default_config_root,
+ $MDV::Draklive::Config::default_config_path,
+ $MDV::Draklive::Config::default_settings_path);
+MDV::Draklive::Config::check_config($live);
+MDV::Draklive::Config::complete_config($live);
+
+MDV::Draklive::Initrd::create_media_specific_initrd($live, $live->{media}, "/", $initrd, $kernel);