File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -110,24 +110,26 @@ platform_specific() {
110
110
# set varlog size to 100MB
111
111
local varlog_size=100
112
112
113
- # This is temporary as the platform= and sid= parameters don't provide enough
114
- # information to identify the SKU
115
- # An initramfs hook or a later processing done by the initscripts will be
116
- # required to read the system eeprom
113
+ local flash_size=$(( $(df | grep flash | tr - s ' ' | cut - f2 - d' ') / 1000 ))
114
+
117
115
if [ " $platform " = " raven" ]; then
118
116
aboot_machine=arista_7050_qx32
117
+ flash_size=2000
119
118
echo " modprobe.blacklist=radeon" >> /tmp/append
120
119
fi
121
120
if [ " $platform " = " crow" ]; then
122
121
aboot_machine=arista_7050_qx32s
122
+ flash_size=3700
123
123
echo " modprobe.blacklist=radeon" >> /tmp/append
124
124
fi
125
125
if [ " $sid " = " Upperlake" ] || [ " $sid " = " UpperlakeES" ]; then
126
126
aboot_machine=arista_7060_cx32s
127
+ flash_size=3700
127
128
echo " amd_iommu=off" >> /tmp/append
128
129
fi
129
130
if [ " $sid " = " Gardena" ] || [ " $sid " = " GardenaSsd" ]; then
130
131
aboot_machine=arista_7260cx3_64
132
+ flash_size=28000
131
133
fi
132
134
if [ " $platform " = " rook" ]; then
133
135
varlog_size=4096
You can’t perform that action at this time.
0 commit comments