summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Overlay.pm
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-11-22 14:00:42 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-11-22 14:00:42 +0000
commit0d61c6c559469cf4df58b0f59a78172c72afe878 (patch)
tree19ef1fed1c5f2a6d04b9863aad7e84ba011731d1 /lib/MDV/Draklive/Overlay.pm
parentf43f615854cfdbf209cc673935e316b63deabdb6 (diff)
downloaddrakiso-0d61c6c559469cf4df58b0f59a78172c72afe878.tar
drakiso-0d61c6c559469cf4df58b0f59a78172c72afe878.tar.gz
drakiso-0d61c6c559469cf4df58b0f59a78172c72afe878.tar.bz2
drakiso-0d61c6c559469cf4df58b0f59a78172c72afe878.tar.xz
drakiso-0d61c6c559469cf4df58b0f59a78172c72afe878.zip
Remove obsolete code for generating old draklive-style initrds.
Move the remaining code in the Initrd module into draklive - it's just a call to bootloader::add_kernel() and only gets used in one place, so doesn't need wrapping.
Diffstat (limited to 'lib/MDV/Draklive/Overlay.pm')
-rw-r--r--lib/MDV/Draklive/Overlay.pm22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/MDV/Draklive/Overlay.pm b/lib/MDV/Draklive/Overlay.pm
deleted file mode 100644
index 50b9cdd..0000000
--- a/lib/MDV/Draklive/Overlay.pm
+++ /dev/null
@@ -1,22 +0,0 @@
-package MDV::Draklive::Overlay;
-
-use MDV::Draklive::Loopback;
-
-our %overlay = (
- unionfs => {
- modules => [ qw(unionfs) ],
- mount => sub {
- my ($live) = @_;
- #- build dirs list: "dir1=ro:dir2:ro:dir3=rw"
- my $dirs = join(':',
- map {
- $_->{list} ? "\$(cat $live->{prefix}{live}{mnt}/$_->{list})" :
- "$live->{prefix}{live}{mnt}$_->{mountpoint}=" .
- (!$loop_types{$_->{type}}{read_only} && !$_->{read_only} ? 'rw' : 'ro');
- } reverse grep { !$_->{fallback} } @{$live->{mount}{dirs} || []});
- "sh -c 'mount -o dirs=$dirs -t unionfs unionfs $live->{prefix}{live}{mnt}$live->{mount}{root}'";
- },
- },
-);
-
-1;