mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 17:04:52 +08:00 
			
		
		
		
	fix: Installation (#501)
This commit is contained in:
		
							parent
							
								
									6e8af6e52f
								
							
						
					
					
						commit
						74629e4b55
					
				@ -205,12 +205,7 @@ else
 | 
			
		||||
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
HDA="$TMP/hda1"
 | 
			
		||||
IDB="$TMP/indexdb"
 | 
			
		||||
PKG="$TMP/packages"
 | 
			
		||||
HDP="$TMP/synohdpack_img"
 | 
			
		||||
 | 
			
		||||
[ ! -f "$HDA.tgz" ] && error "The PAT file contains no OS image." && exit 64
 | 
			
		||||
info "Install: Preparing system partition..."
 | 
			
		||||
 | 
			
		||||
BOOT=$(find "$TMP" -name "*.bin.zip")
 | 
			
		||||
[ ! -f "$BOOT" ] && error "The PAT file contains no boot image." && exit 67
 | 
			
		||||
@ -271,15 +266,18 @@ PART="$TMP/partition.fdisk"
 | 
			
		||||
 | 
			
		||||
sfdisk -q "$SYSTEM" < "$PART"
 | 
			
		||||
 | 
			
		||||
info "Install: Extracting system partition..."
 | 
			
		||||
 | 
			
		||||
LABEL="1.44.1-42218"
 | 
			
		||||
OFFSET="1048576" # 2048 * 512
 | 
			
		||||
NUMBLOCKS="622560" # (4980480 * 512) / 4096
 | 
			
		||||
 | 
			
		||||
MOUNT="$TMP/system"
 | 
			
		||||
rm -rf "$MOUNT" && mkdir -p "$MOUNT"
 | 
			
		||||
 | 
			
		||||
info "Install: Extracting system partition..."
 | 
			
		||||
 | 
			
		||||
HDA="$TMP/hda1"
 | 
			
		||||
IDB="$TMP/indexdb"
 | 
			
		||||
PKG="$TMP/packages"
 | 
			
		||||
HDP="$TMP/synohdpack_img"
 | 
			
		||||
 | 
			
		||||
[ ! -f "$HDA.tgz" ] && error "The PAT file contains no OS image." && exit 64
 | 
			
		||||
 | 
			
		||||
mv "$HDA.tgz" "$HDA.txz"
 | 
			
		||||
 | 
			
		||||
if [[ "$ROOT" != [Nn]* ]]; then
 | 
			
		||||
@ -299,6 +297,10 @@ if [ -f "$IDB.txz" ]; then
 | 
			
		||||
  tar xpfJ "$IDB.txz" --absolute-names -C "$INDEX_DB"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
LABEL="1.44.1-42218"
 | 
			
		||||
OFFSET="1048576" # 2048 * 512
 | 
			
		||||
NUMBLOCKS="622560" # (4980480 * 512) / 4096
 | 
			
		||||
 | 
			
		||||
if [[ "$ROOT" != [Nn]* ]]; then
 | 
			
		||||
 | 
			
		||||
  info "Install: Installing system partition..."
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user