emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#27690: closed ([PATCH] build: Allow mounting of en


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#27690: closed ([PATCH] build: Allow mounting of entire disks.)
Date: Tue, 05 Sep 2017 13:23:02 +0000

Your message dated Tue, 05 Sep 2017 15:22:12 +0200
with message-id <address@hidden>
and subject line Re: [bug#27690] [PATCH] build: Allow mounting of entire disks.
has caused the debbugs.gnu.org bug report #27690,
regarding [PATCH] build: Allow mounting of entire disks.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
27690: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27690
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] build: Allow mounting of entire disks. Date: Fri, 14 Jul 2017 10:32:15 +0200
* gnu/build/file-systems.scm (disk-partitions): Also return entire drives.
---
 gnu/build/file-systems.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
index b6930497d..462ed9b7f 100644
--- a/gnu/build/file-systems.scm
+++ b/gnu/build/file-systems.scm
@@ -377,11 +377,14 @@ not valid header was found."
     (string-ref str (- (string-length str) 1)))
 
   (define (partition? name major minor)
-    ;; Select device names that end in a digit, like libblkid's 'probe_all'
-    ;; function does.  Checking for "/sys/dev/block/MAJOR:MINOR/partition"
-    ;; doesn't work for partitions coming from mapped devices.
-    (and (char-set-contains? char-set:digit (last-character name))
-         (> major 2)))                      ;ignore RAM disks and floppy disks
+    ;; grub-mkrescue does some funny things for EFI support which
+    ;; makes it a lot more difficult than one would expect to support
+    ;; booting an ISO-9660 image from an USB flash drive.
+    ;; For example there's a buggy (too small) hidden partition in it
+    ;; which Linux rightfully refuses to mount.
+    ;; In any case, partition tables are supposed to be optional so
+    ;; here we allow checking entire disks for file systems, too.
+    (> major 2))                      ;ignore RAM disks and floppy disks
 
   (call-with-input-file "/proc/partitions"
     (lambda (port)



--- End Message ---
--- Begin Message --- Subject: Re: [bug#27690] [PATCH] build: Allow mounting of entire disks. Date: Tue, 05 Sep 2017 15:22:12 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)
This was pushed as 9833bcfc08ef009b9e8b4398baa481ef65c80ad7, closing!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]