summaryrefslogtreecommitdiff
path: root/ext4_utils
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2019-01-09 11:51:34 -0800
committerMark Salyzyn <salyzyn@google.com>2019-01-09 12:08:25 -0800
commitd7c0ca7339454158eed68be4b59742695b2f679b (patch)
tree3cabfda03ff001715578bc544fb5a79d9eee9fa4 /ext4_utils
parent50d9be039095d849056bd8177ab99d4a1175447d (diff)
downloadextras-d7c0ca7339454158eed68be4b59742695b2f679b.tar.gz
mkuserimg_mke2fs: pass mount point to mkext2fs
When we construct an ext4 system filesystem image, tune2fs reports: Last mounted on=<not available> With this change, it will now report: Last mounted on=/system (or /vendor etc) This is a cosmetic administrative change. Test: manual Bug: 122328872 Change-Id: Ia5370c0b222ee6ad5ee1db10a2810e99b7d01186
Diffstat (limited to 'ext4_utils')
-rw-r--r--ext4_utils/mkuserimg_mke2fs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext4_utils/mkuserimg_mke2fs.py b/ext4_utils/mkuserimg_mke2fs.py
index 39fdcfdc..538ffaac 100644
--- a/ext4_utils/mkuserimg_mke2fs.py
+++ b/ext4_utils/mkuserimg_mke2fs.py
@@ -165,6 +165,8 @@ def ConstructE2fsCommands(args):
mke2fs_opts += ["-N", args.inodes]
if args.inode_size:
mke2fs_opts += ["-I", args.inode_size]
+ if args.mount_point:
+ mke2fs_opts += ["-M", args.mount_point]
if args.reserved_percent:
mke2fs_opts += ["-m", args.reserved_percent]
if args.mke2fs_uuid: