Script to create the 8GB blob that can be used in lieu of onie installer#806
Script to create the 8GB blob that can be used in lieu of onie installer#806padmanarayana wants to merge 1 commit intosonic-net:masterfrom padmanarayana:sonic_dd_blob4
Conversation
|
@padmanarayana, It will cover your contributions to all Microsoft-managed open source projects. |
| mkdir ${PLATFORM}_mount | ||
| mount -t auto -o loop ${PLATFORM}_8GB_dd.img ${PLATFORM}_mount | ||
|
|
||
| echo -e "\n# Extracting tarballs into ${PLATFORM}_mount..." |
There was a problem hiding this comment.
how can this script work? it does not have kernel, squashfs???
|
most of the logic in build_dd_image.sh is in installer/x86_64/install.sh file. therefore, I think the best to do create the raw(dd) image is using following steps:
|
| mkdir -p ${PLATFORM}_mount/disk-img | ||
| dd if=/dev/zero of=${PLATFORM}_mount/disk-img/var-log.ext4 count=8388608 | ||
| mkfs.ext4 -q ${PLATFORM}_mount/disk-img/var-log.ext4 -F | ||
|
|
There was a problem hiding this comment.
line 16 ~ 24 are in installer/x86_64/install.sh. can you try to embed the logic into install.sh https://github.com/Azure/sonic-buildimage/blob/master/installer/x86_64/install.sh#L411
| gzip ${PLATFORM}_8GB_dd.img | ||
| mv ${PLATFORM}_8GB_dd.img.gz target | ||
| echo -e "\n# Done. DD image is under target/${PLATFORM}_8GB_dd.img.gz\n" | ||
|
|
There was a problem hiding this comment.
I'd like to have a grub directory in this sonic partition, so that you can chain the grub in ftos to grub in sonic.
There was a problem hiding this comment.
it is much easier for later sonic-to-sonic upgrade scenario.
|
the sonic partition should also have a /host/machine.conf file for sonic to work properly. |
|
@padmanarayana, It will cover your contributions to all Microsoft-managed open source projects. |
|
@padmanarayana, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
|
Closing this. Please refer to #846 that addresses review comments. |
* 3f14956 2019-03-06 [portsorch] fix bug in speed set (sonic-net#806) [Stepan Blyshchak] * c903b5d 2019-03-05 [vnetorch]: Add support of nexthop routes for Bitmap VNET implementation (sonic-net#805) [Volodymyr Samotiy] * 3b34b21 2019-02-26 [vnetorch]: Add support of local routes for Bitmap VNET implementation (sonic-net#801) [Volodymyr Samotiy] * 62b7ca4 2019-02-22 Fix incorrect ACL CRM increment, resulting orchagent crash (sonic-net#800) [Prince Sunny] * dd6bdd9 2019-02-21 [vnetorch]: Bitmap VNet implementation (sonic-net#773) [Marian Pritsak] Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
Submodule src/sonic-swss 4b489ce..90eb25d: > [portsorch] fix bug in speed set (sonic-net#806) Submodule src/sonic-swss-common 2592b0c..c674e64: > Add multiple fields hdel support (sonic-net#267) > Update PFC_WD table name in CONFIG_DB (sonic-net#266) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
* 3f14956 2019-03-06 [portsorch] fix bug in speed set (#806) [Stepan Blyshchak] * c903b5d 2019-03-05 [vnetorch]: Add support of nexthop routes for Bitmap VNET implementation (#805) [Volodymyr Samotiy] * 3b34b21 2019-02-26 [vnetorch]: Add support of local routes for Bitmap VNET implementation (#801) [Volodymyr Samotiy] * 62b7ca4 2019-02-22 Fix incorrect ACL CRM increment, resulting orchagent crash (#800) [Prince Sunny] * dd6bdd9 2019-02-21 [vnetorch]: Bitmap VNet implementation (#773) [Marian Pritsak] Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
) Submodule src/sonic-swss 4b489ce..90eb25d: > [portsorch] fix bug in speed set (sonic-net#806) Submodule src/sonic-swss-common 2592b0c..c674e64: > Add multiple fields hdel support (#267) > Update PFC_WD table name in CONFIG_DB (#266) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
) Submodule src/sonic-swss 4b489ce..90eb25d: > [portsorch] fix bug in speed set (sonic-net#806) Submodule src/sonic-swss-common 2592b0c..c674e64: > Add multiple fields hdel support (#267) > Update PFC_WD table name in CONFIG_DB (#266) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
) Submodule src/sonic-swss 4b489ce..90eb25d: > [portsorch] fix bug in speed set (sonic-net#806) Submodule src/sonic-swss-common 2592b0c..c674e64: > Add multiple fields hdel support (#267) > Update PFC_WD table name in CONFIG_DB (#266) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
1906fdf [pyext] Update Makefile to disable warning Wconversion for older swig (#817) 1dbcaeb Remove gbsyncd_startup.py (#813) 0372615 [vslib] Refresh queue pause status (#814) 00d883c [sairedis] Add sai_dbg_generate_dump api to redis interface (#811) 8585803 [sairedis] Unlock api mutex for communication mode (#812) c69549a [pyext] Add SWIG sairedis python submodule (#806)
1906fdf [pyext] Update Makefile to disable warning Wconversion for older swig (#817) 1dbcaeb Remove gbsyncd_startup.py (#813) 0372615 [vslib] Refresh queue pause status (#814) 00d883c [sairedis] Add sai_dbg_generate_dump api to redis interface (#811) 8585803 [sairedis] Unlock api mutex for communication mode (#812) c69549a [pyext] Add SWIG sairedis python submodule (#806)
1906fdf [pyext] Update Makefile to disable warning Wconversion for older swig (sonic-net#817) 1dbcaeb Remove gbsyncd_startup.py (sonic-net#813) 0372615 [vslib] Refresh queue pause status (sonic-net#814) 00d883c [sairedis] Add sai_dbg_generate_dump api to redis interface (sonic-net#811) 8585803 [sairedis] Unlock api mutex for communication mode (sonic-net#812) c69549a [pyext] Add SWIG sairedis python submodule (sonic-net#806)
1906fdf [pyext] Update Makefile to disable warning Wconversion for older swig (sonic-net#817) 1dbcaeb Remove gbsyncd_startup.py (sonic-net#813) 0372615 [vslib] Refresh queue pause status (sonic-net#814) 00d883c [sairedis] Add sai_dbg_generate_dump api to redis interface (sonic-net#811) 8585803 [sairedis] Unlock api mutex for communication mode (sonic-net#812) c69549a [pyext] Add SWIG sairedis python submodule (sonic-net#806)
Bring sairedis python modules for both python2 and python3 using SWIG and extra helper methods, as well as adding debian packages for those modules.
… automatically (sonic-net#806) #### Why I did it src/sonic-platform-common ``` * 966e073 - (HEAD -> 202405, origin/202405) Restore optoe page to default 0 for active cables (sonic-net#549) (sonic-net#53) (16 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
Compared to a ONIE based SONiC install, when the dd image generated from this script is used, the following services failed/have warnings:
[FAILED] Failed to start /etc/rc.local Compatibility.
[FAILED] Failed to start Update rsyslog configuration.
[FAILED] Failed to start Update NTP configuration.
[FAILED] Failed to start System Logging Service.
aufs au_opts_verify:1570:docker[679]: dirperm1 breaks the protection by the permission bits on the lower branch
This is under investigation.