From 4df03187010d6be283df265821617a86273c6c6b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 13 Dec 2007 16:11:24 +0000 Subject: add ext2 and vfat storage types (with auto-fsck for ext2) --- draklive | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'draklive') diff --git a/draklive b/draklive index b8c205f..888905b 100755 --- a/draklive +++ b/draklive @@ -163,6 +163,25 @@ my %storage_fs; '/bin/mount -n -o ro,nolock -t nfs ' . get_media_source_for_nash($media) . " $live->{prefix}{live}{mnt}$live->{prefix}{media}{mnt}"; } }, + ext2 => { + files => [ '/sbin/fsck.ext2' ], + mount => sub { + my ($live, $media) = @_; + my $fsck = "/bin/fsck.ext2"; + my $source = get_media_setting($media, 'source'); + qq(sh -c '$fsck -a $source || $fsck -y $source'), + $storage_fs{generic}{mount}->($live, $media); + }, + }, + vfat => { + #files => [ '/sbin/dosfsck' ], + mount => sub { + my ($live, $media) = @_; + #$storage_fs{generic}{mount}->($live, $media), + #qq(awk '\$2 == "$live->{prefix}{live}{mnt}$live->{prefix}{media}{mnt}" { system("umount " \$1 "; mount; echo dosfsck -a " \$1 "; dosfsck -a " \$1) }' /proc/mounts), + $storage_fs{generic}{mount}->($live, $media); + }, + }, ); sub nls_modules { -- cgit v1.2.1