Commit e579e339 authored by Mike Hibler's avatar Mike Hibler

Add -m to cpio to preserve modtimes in the Linux MFS.

Also, add a little feedback.
parent 637ebe18
......@@ -123,15 +123,18 @@ if ($passhash eq "") {
# Figure out what kind of thing to localize.
#
if (-e "boot" && -e "boot/mfsroot") {
print "Localizing FreeBSD MFS $path/boot/mfsroot ...\n";
LocalizeBSD();
exit(0);
}
foreach my $extension ("lzma", "bz2", "gz") {
if (-e "initramfs.${extension}") {
print "Localizing Linux MFS $path/initramfs.$extension ...\n";
LocalizeLinux($extension);
exit(0);
}
if (-e "initramfs") {
print "Localizing Linux MFS $path/initramfs ...\n";
LocalizeLinux("");
exit(0);
}
......@@ -329,7 +332,7 @@ sub LocalizeLinux($)
# Extract
if (defined($compression)) {
ExecQuiet("$compression -dc < ../${initfs}.${extension} | cpio -idu")
ExecQuiet("$compression -dc < ../${initfs}.${extension} | cpio -idum")
== 0 or fatal("Could not extract ${initfs}.${extension}");
}
else {
......@@ -456,4 +459,3 @@ sub fatal($)
" $mesg\n";
exit(-1);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment