diff options
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh index 23d97d39b6..26a8d89143 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh | |||
@@ -36,7 +36,7 @@ DEBUGFS="debugfs" | |||
36 | fi | 36 | fi |
37 | 37 | ||
38 | # Only stat once since stat is a time consuming command | 38 | # Only stat once since stat is a time consuming command |
39 | STAT=$(stat -c "TYPE=\"%F\";DEVNO=\"0x%t 0x%T\";MODE=\"%f\";U=\"%u\";G=\"%g\"" "$FILE") | 39 | STAT=$(stat -c "TYPE=\"%F\";DEVNO=\"0x%t 0x%T\";MODE=\"%f\";U=\"%u\";G=\"%g\";AT=\"%x\";MT=\"%y\";CT=\"%z\"" "$FILE") |
40 | eval $STAT | 40 | eval $STAT |
41 | 41 | ||
42 | case $TYPE in | 42 | case $TYPE in |
@@ -70,6 +70,14 @@ DEBUGFS="debugfs" | |||
70 | # Set uid and gid | 70 | # Set uid and gid |
71 | echo "sif \"$TGT\" uid $U" | 71 | echo "sif \"$TGT\" uid $U" |
72 | echo "sif \"$TGT\" gid $G" | 72 | echo "sif \"$TGT\" gid $G" |
73 | |||
74 | # Set atime, mtime and ctime | ||
75 | AT=`echo $AT | cut -d'.' -f1 | sed -e 's#[- :]##g'` | ||
76 | MT=`echo $MT | cut -d'.' -f1 | sed -e 's#[- :]##g'` | ||
77 | CT=`echo $CT | cut -d'.' -f1 | sed -e 's#[- :]##g'` | ||
78 | echo "sif \"$TGT\" atime $AT" | ||
79 | echo "sif \"$TGT\" mtime $MT" | ||
80 | echo "sif \"$TGT\" ctime $CT" | ||
73 | done | 81 | done |
74 | 82 | ||
75 | # Handle the hard links. | 83 | # Handle the hard links. |