• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7#
8# COMMON
9#
10required_kparams_common=( quiet console=tty2 init=/sbin/init add_efi_memmap
11                          boot=local rootwait ro noresume noswap i915.modeset=1
12                          loglevel=1 cros_secure kern_guid=%U tpm_tis.force=1
13                          tpm_tis.interrupts=0 root=/dev/dm-0
14                          dm_verity.error_behavior=3 dm_verity.max_bios=-1
15                          dm_verity.dev_wait=1 noinitrd )
16
17optional_kparams_common=( )
18optional_kparams_regex_common=( )
19
20# use "MAGIC_HASH" in place of the unpredictable sha1 hash, comparison
21# functions later take care of the rest.... This set of dmparams
22# taken from observation of current builds. In particular we may see
23# the size of the filesystem creep over time. That size is denoted by
24# the large number that appears a couple times in this string.
25dmparams_common_list=('vroot none ro,0 1740800 verity %U+1 %U+1 1740800 0 sha1 MAGIC_HASH'
26'vroot none ro,0 1740800 verity payload=%U+1 hashtree=%U+1 hashstart=1740800 alg=sha1 root_hexdigest=MAGIC_HASH'
27
28'vroot none ro,0 1740800 verity payload=%U+1 hashtree=%U+1 hashstart=1740800 alg=sha1 root_hexdigest=MAGIC_HASH salt=MAGIC_SALT'
29)
30
31#
32# x86-mario
33#
34required_kparams_x86_mario=( ${required_kparams_common[@]} )
35optional_kparams_x86_mario=( ${optional_kparams_common[@]} )
36optional_kparams_regex_x86_mario=( ${optional_kparams_regex_common[@]} )
37required_dmparams_x86_mario=("${required_dmparams_common[@]}")
38
39# Set up additional boards here. The "common" variables are
40# not directly consulted by the test script, they're only
41# here for your convenience in building up the board-specific
42# configuration variables like the 3 shown above.
43