Page MenuHomePhabricator

Install Image script does not respect size of partition greater than 2G but less than disk size
Open, Requires assessmentPublicBUG

Description

Tried installing the 1.3.x rolling release and it did not allow for manual partition size.

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.3-rolling-201911230242-amd64.iso
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

systo created this task.Thu, Nov 28, 4:01 AM

Hi @systo
Can you describe step by step what you did not succeed?
The example below is just an example.

VyOS 1.3-rolling-201912040242

Would you like to continue? (Yes/No) [Yes]: 
Probing drives: OK

Partition (Auto/Parted/Skip) [Auto]: Parted

The VyOS install needs a minimum 2000MB root
with partiton type 83 (Linux).

(parted) print                                                            
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start  End  Size  Type  File system  Flags

(parted) mkpart                                                           
Partition type?  primary/extended? primary                                
File system type?  [ext2]?                                                
Start? 1                                                                  
End? 3000MB                                                               
(parted)

(parted) print                                                            
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 8590MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  3000MB  2999MB  primary  ext2         lba
I found the following partitions suitable for the VyOS image:
Partition	Size
 vda1		2998MB


Which partition should I install the root on? [vda1]: 


Looking for config files from previous installations on vda1...
Creating filesystem on /dev/vda1: OK
Done!
Mounting /dev/vda1...
What would you like to name this image? [1.3-rolling-201912040242]: 


Copying /opt/vyatta/etc/config/config.boot to vda.
Enter password for administrator account
Enter password for user 'vyos':
Retype password for user 'vyos':
I need to install the GRUB boot loader.
I found the following drives on your system:
 vda	8589MB


Which drive should GRUB modify the boot partition on? [vda]:

After install/reboot

vyos@vyos:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            230M     0  230M   0% /dev
tmpfs            49M  1.9M   47M   4% /run
/dev/vda1       2.7G  553M  2.0G  22% /usr/lib/live/mount/persistence
/dev/loop0      495M  495M     0 100% /usr/lib/live/mount/rootfs/1.3-rolling-201912040242.squashfs
tmpfs           244M     0  244M   0% /usr/lib/live/mount/overlay
overlay         2.7G  553M  2.0G  22% /
tmpfs           244M     0  244M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           244M     0  244M   0% /sys/fs/cgroup
tmpfs           244M  4.0K  244M   1% /tmp
none            244M   40K  244M   1% /opt/vyatta/config
tmpfs            49M     0   49M   0% /run/user/1003
vyos@vyos:~$ sudo fdisk --list | grep vda
Disk /dev/vda: 8 GiB, 8589934592 bytes, 16777216 sectors
/dev/vda1        2048 5859327 5857280  2.8G 83 Linux