mirror of
https://github.com/fspc/gbootroot.git
synced 2026-09-08 12:51:40 -04:00
This adds romfs capability.
This commit is contained in:
+7
-6
@@ -1418,20 +1418,21 @@ sub create_filesystem {
|
||||
while (Gtk->events_pending) { Gtk->main_iteration; }
|
||||
}
|
||||
|
||||
if ( $fs_type eq "mkcramfs" ) {
|
||||
if ( $fs_type eq "mkcramfs" || $fs_type eq "genromfs" ) {
|
||||
# Will just keep appending _cramfs .. leaving it to the
|
||||
# user to realize this is happening, that way the user
|
||||
# has control over the dd file.
|
||||
$device = $device . "_cramfs";
|
||||
my $cramfs_name = basename($device);
|
||||
$fs_type eq "mkcramfs" ? ($device = $device . "_cramfs") :
|
||||
($device = $device . "_romfs");
|
||||
my $cramfs_name = basename($device);
|
||||
# If somebody closes ARS, this won't get updated,
|
||||
# but that is a minor matter.
|
||||
$ear2->set_text($cramfs_name) if $ear2;
|
||||
$ear2->set_text($cramfs_name) if $ear2;
|
||||
$mount_point = dirname($device);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
elsif (
|
||||
sys("/usr/lib/bootroot/$main::makefs -b $fs_size -d $mount_point -D $device_table $device") !~
|
||||
/^0$/ ) {
|
||||
|
||||
Reference in New Issue
Block a user