diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-10-24 21:04:44 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-10-24 21:04:44 +0000 |
commit | cf5c1d9c23afbe441d0d94868253348f3c71bf9b (patch) | |
tree | 18899e0cd38fee2e38d93dd47f68c7bf18596059 /perl-install/fs.pm | |
parent | e29e7e0ae78b527adcc5eb23c55f240aa00d08d7 (diff) | |
download | drakx-cf5c1d9c23afbe441d0d94868253348f3c71bf9b.tar drakx-cf5c1d9c23afbe441d0d94868253348f3c71bf9b.tar.gz drakx-cf5c1d9c23afbe441d0d94868253348f3c71bf9b.tar.bz2 drakx-cf5c1d9c23afbe441d0d94868253348f3c71bf9b.tar.xz drakx-cf5c1d9c23afbe441d0d94868253348f3c71bf9b.zip |
replace /initrd with /lib/initrd
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 88792c312..843cd144d 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -142,7 +142,7 @@ sub write_fstab { $_->{device} eq 'none' || member($_->{type}, qw(nfs smbfs)) ? $_->{device} : isLoopback($_) ? - ($_->{mntpoint} eq '/' ? "/initrd/loopfs" : "$_->{loopback_device}{mntpoint}") . $_->{loopback_file} : + ($_->{mntpoint} eq '/' ? "/lib/initrd/loopfs" : "$_->{loopback_device}{mntpoint}") . $_->{loopback_file} : do { my $dir = $_->{device} =~ m|^/| ? '' : '/dev/'; eval { devices::make("$prefix$dir$_->{device}") }; @@ -151,7 +151,7 @@ sub write_fstab { my $real_mntpoint = $_->{mntpoint} || ${{ '/tmp/hdimage' => '/mnt/hd' }}{$_->{real_mntpoint}}; mkdir("$prefix/$real_mntpoint", 0755); - my $mntpoint = loopback::carryRootLoopback($_) ? '/initrd/loopfs' : $real_mntpoint; + my $mntpoint = loopback::carryRootLoopback($_) ? '/lib/initrd/loopfs' : $real_mntpoint; my ($freq, $passno) = exists $_->{freq} ? @@ -662,7 +662,7 @@ sub mount_part { eval { modules::load('loop') }; $dev = $part->{real_device} = devices::set_loop($part->{device}) || die; } elsif (loopback::carryRootLoopback($part)) { - $mntpoint = "/initrd/loopfs"; + $mntpoint = "/lib/initrd/loopfs"; } mount($dev, $mntpoint, type2fs($part), $rdonly); rmdir "$mntpoint/lost+found"; @@ -680,7 +680,7 @@ sub umount_part { if (isSwap($part)) { swap::swapoff($part->{device}); } elsif (loopback::carryRootLoopback($part)) { - umount("/initrd/loopfs"); + umount("/lib/initrd/loopfs"); } else { umount(($prefix || '') . $part->{mntpoint} || devices::make($part->{device})); c::del_loop(delete $part->{real_device}) if isLoopback($part); |