Revert "guix system: Remove unused 'read-operating-system' procedure."
This reverts commit d11a432adf.
The 'read-operating-system' is used in Emacs-Guix.
			
			
This commit is contained in:
		
							parent
							
								
									602527ab97
								
							
						
					
					
						commit
						22b9734b67
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -38,6 +38,7 @@ | ||||||
|   #:use-module ((guix licenses) |   #:use-module ((guix licenses) | ||||||
|                 #:select (gpl3+ license? license-name)) |                 #:select (gpl3+ license? license-name)) | ||||||
|   #:use-module ((guix utils) #:select (%current-system)) |   #:use-module ((guix utils) #:select (%current-system)) | ||||||
|  |   #:use-module ((guix scripts system) #:select (read-operating-system)) | ||||||
|   #:use-module ((guix scripts pack) |   #:use-module ((guix scripts pack) | ||||||
|                 #:select (self-contained-tarball)) |                 #:select (self-contained-tarball)) | ||||||
|   #:use-module (gnu bootloader) |   #:use-module (gnu bootloader) | ||||||
|  |  | ||||||
|  | @ -92,6 +92,7 @@ | ||||||
|   #:use-module (ice-9 match) |   #:use-module (ice-9 match) | ||||||
|   #:use-module (rnrs bytevectors) |   #:use-module (rnrs bytevectors) | ||||||
|   #:export (guix-system |   #:export (guix-system | ||||||
|  |             read-operating-system | ||||||
| 
 | 
 | ||||||
|             service-node-type |             service-node-type | ||||||
|             shepherd-service-node-type)) |             shepherd-service-node-type)) | ||||||
|  | @ -107,6 +108,11 @@ | ||||||
|                       (gnu services) |                       (gnu services) | ||||||
|                       (gnu system shadow)))) |                       (gnu system shadow)))) | ||||||
| 
 | 
 | ||||||
|  | ;; Note: The procedure below is used in external projects such as Emacs-Guix. | ||||||
|  | (define (read-operating-system file) | ||||||
|  |   "Read the operating-system declaration from FILE and return it." | ||||||
|  |   (load* file %user-module)) | ||||||
|  | 
 | ||||||
|  |  | ||||||
| ;;; | ;;; | ||||||
| ;;; Installation. | ;;; Installation. | ||||||
|  |  | ||||||
		Reference in a new issue