diff options
Diffstat (limited to 'patches/source/util-linux/util-linux.do.not.list.ram.devices.diff')
-rw-r--r-- | patches/source/util-linux/util-linux.do.not.list.ram.devices.diff | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/source/util-linux/util-linux.do.not.list.ram.devices.diff b/patches/source/util-linux/util-linux.do.not.list.ram.devices.diff new file mode 100644 index 00000000..33a74307 --- /dev/null +++ b/patches/source/util-linux/util-linux.do.not.list.ram.devices.diff @@ -0,0 +1,13 @@ +--- ./disk-utils/fdisk-list.c.orig 2018-09-20 07:38:55.845404951 -0500 ++++ ./disk-utils/fdisk-list.c 2019-01-02 15:53:21.256868721 -0600 +@@ -337,6 +337,10 @@ + if (devno <= 0) + continue; + ++ /* Don't list /dev/ram* devices */ ++ if (strstr(line, "ram") && devno >= 256) ++ continue; ++ + if (sysfs_devno_is_dm_private(devno, NULL) || + sysfs_devno_is_wholedisk(devno) <= 0) + continue; |