forked from ungleich-public/cdist
		
	Add Alpine Linux as supported for __filesystem.
This commit is contained in:
		
					parent
					
						
							
								7e1428ab3c
							
						
					
				
			
			
				commit
				
					
						17ab4bd80c
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -18,16 +18,16 @@ | ||||||
| # along with cdist. If not, see <http://www.gnu.org/licenses/>. | # along with cdist. If not, see <http://www.gnu.org/licenses/>. | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
| os=$("$__explorer/os") | os=$("${__explorer:?}/os") | ||||||
| 
 | 
 | ||||||
| if [ -f "$__object/parameter/device" ]; then | if [ -f "${__object:?}/parameter/device" ]; then | ||||||
|     blkdev="$(cat "$__object/parameter/device")" |     blkdev="$(cat "$__object/parameter/device")" | ||||||
| else | else | ||||||
|     blkdev="$__object_id" |     blkdev="${__object_id:?}" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| case "$os" in | case "$os" in | ||||||
|     centos|fedora|redhat|suse|gentoo) |     alpine|centos|fedora|redhat|suse|gentoo) | ||||||
|         if [ ! -x "$(command -v lsblk)" ]; then |         if [ ! -x "$(command -v lsblk)" ]; then | ||||||
|             echo "lsblk is required for __filesystem type" >&2 |             echo "lsblk is required for __filesystem type" >&2 | ||||||
|             exit 1 |             exit 1 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue