mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
reset nlinks as well since /dev was changing due to serial adapter hotplug
This commit is contained in:
parent
21268a4bb8
commit
ed409cabbf
@ -7,6 +7,7 @@
|
|||||||
# File timestamp is set to 1970-01-01T00:00:00
|
# File timestamp is set to 1970-01-01T00:00:00
|
||||||
# uid/gid are set to root
|
# uid/gid are set to root
|
||||||
# check field is zeroed
|
# check field is zeroed
|
||||||
|
# nlinks is set to zero, since the filesystem manages it
|
||||||
#
|
#
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
@ -114,6 +115,9 @@ for my $filename (sort keys %entries)
|
|||||||
substr($entry, 6 + 16, 8) = $zero;
|
substr($entry, 6 + 16, 8) = $zero;
|
||||||
substr($entry, 6 + 24, 8) = $zero;
|
substr($entry, 6 + 24, 8) = $zero;
|
||||||
|
|
||||||
|
# zero out the nlinks, since it is managed by the real fs
|
||||||
|
substr($entry, 6 + 32, 8) = $zero;
|
||||||
|
|
||||||
# set check to zero
|
# set check to zero
|
||||||
substr($entry, 6 + 96, 8) = $zero;
|
substr($entry, 6 + 96, 8) = $zero;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user