Open mgheorghe opened 1 year ago
this functionality will be really helpful to be fixed for automated regression
looks like an issue with one mtd partition name one-shell checks for partition mane "onie" https://github.com/dentproject/dentOS/blob/988026a9637ed50cad58f846270a523b0966fcec/packages/base/all/vendor-config-onl/src/python/onl/install/ShellApp.py#L170
on arm64-delta-tn48m-poe-dn-r0
cat /proc/mtd
dev: size erasesize name
mtd0: 003f0000 00001000 "uboot"
mtd1: 00010000 00001000 "uboot-env"
mtd2: 00c00000 00001000 "ONIE"
and on arm64-accton_as5114_48x-r0
root@dentlab-agg2:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 00001000 "uboot"
mtd1: 00010000 00001000 "uboot-env"
mtd2: 00df0000 00001000 "onie"
@taraschornyiplv it's a first issue when we have mtd2 is "onie" it goes to onie-shell and when i try below commands , i get an error
root@dentlab-infra1:~# onie-shell
/ # onie-nos-install http://10.xx.xxx.x/downloads/DENTOS-HEAD_ONL-OS9_2023-05-09.0522-988026a_ARM64_INSTALLED_INSTALLER
Info: Attempting http://10.xx.xxx.x/downloads/DENTOS-HEAD_ONL-OS9_2023-05-09.0522-988026a_ARM64_INSTALLED_INSTALLER ...
Connecting to 10.xx.xxx.x (10.xx.xxx.x:80)
wget: can't open '/var/tmp/installer': No such file or directory
When i create the missing folder /var/tmp and try a command i get the error
/ # onie-nos-install http://10.xx.xxx.x/downloads/DENTOS-HEAD_ONL-OS9_2023-05-09.0522-988026a_ARM64_INSTALLED_INSTALLER
Info: Attempting http://10.xx.xxx.x/downloads/DENTOS-HEAD_ONL-OS9_2023-05-09.0522-988026a_ARM64_INSTALLED_INSTALLER ...
Connecting to 10.xx.xxx.x (10.xx.xxx.x:80)
installer 100% |**********************************************************************************************************************************************************************************************************************************************| 508M 0:00:00 ETA
cat: can't open '/var/run/install.rc': No such file or directory
sh: 0: unknown operand
Failure: Unable to install image: http://10.xx.xxx.x/downloads/DENTOS-HEAD_ONL-OS9_2023-05-09.0522-988026a_ARM64_INSTALLED_INSTALLER
Now if i create /var/run folder and run it gain gets
Failure: Unable to install image: http://10.xx.xxx.x/downloads/DENTOS-HEAD_ONL-OS9_2023-05-09.0522-988026a_ARM64_INSTALLED_INSTALLER
@carlroth can you please take a look at this issue?
when did mtd partitions become case sensitive
we can either fix the kernel (the mtd partition layout is IIRC part of the DTS) or we can make the installer partition check be case-insensitive, @taraschornyiplv I believe your analysis is correct
type
onie-shell
in a dent devicearm64-delta-tn48m-poe-dn-r0
and observe it will fail.(works on other onie enabled devices, non DENT)