Skip to content
Snippets Groups Projects
Verified Commit a63e8bf7 authored by minute's avatar minute
Browse files

clear cmdline variables, these are now in reform-tools / flash-kernel

parent d392995d
No related branches found
No related tags found
1 merge request!83Build LS1028A System Image
...@@ -101,22 +101,13 @@ set -- "$@" --include="brightnessctl brightness-udev ca-certificates debian-arch ...@@ -101,22 +101,13 @@ set -- "$@" --include="brightnessctl brightness-udev ca-certificates debian-arch
# --skip=cleanup/reproducible # --skip=cleanup/reproducible
# apt preferences # apt preferences
set -- "$@" --setup-hook='{ echo "Package: *"; echo "Pin: release n=reform, l=reform"; echo "Pin-Priority: 990"; } > "$1"/etc/apt/preferences.d/reform.pref' set -- "$@" --setup-hook='{ echo "Package: *"; echo "Pin: release n=reform, l=reform"; echo "Pin-Priority: 990"; } > "$1"/etc/apt/preferences.d/reform.pref'
# We write out /etc/default/flash-kernel with kernel cmdline arguments for # The board specific kernel commandline arguments now live in
# imx8mq because u-boot for that SoM is not guaranteed to have ${bootargs}
# available in boot.scr. Other platforms set ${bootargs} to overwrite imx8mq
# specific values defined here.
# It would be possible to not encode imx8mq specific bootargs here by adding
# a custom boot.scr derived from bootscr.uboot-generic which adds imx8mq
# specific bootargs if it detects that platform and finds ${bootargs} to be
# empty.
# Another way to avoid this list here would be to add code to
# /usr/share/flash-kernel/ubootenv.d/00reform2_ubootenv which does the # /usr/share/flash-kernel/ubootenv.d/00reform2_ubootenv which does the
# platform detection and then adds the options to ${bootargs}. # platform detection and then adds the options to ${bootargs}.
set -- "$@" --essential-hook='{ echo LINUX_KERNEL_CMDLINE=\"console=ttymxc0,115200 console=ttyAML0,115200 console=ttyS0,115200 console=tty1\"; echo LINUX_KERNEL_CMDLINE_DEFAULTS=\"ro no_console_suspend cma=512M@3G pci=nomsi,pcie_bus_perf libata.force=noncq nvme_core.default_ps_max_latency_us=0 cryptomgr.notests iommu.passthrough=1 arm-smmu.disable_bypass=0\"; } > "$1"/etc/default/flash-kernel' set -- "$@" --essential-hook='{ echo LINUX_KERNEL_CMDLINE=\"\"; echo LINUX_KERNEL_CMDLINE_DEFAULTS=\"\"; } > "$1"/etc/default/flash-kernel'
# even when above has been taken care of, we still want to overwrite # We still want to overwrite /etc/default/flash-kernel because by default it will contain
# /etc/default/flash-kernel because by default it will contain
# LINUX_KERNEL_CMDLINE="quiet" and we don't want that # LINUX_KERNEL_CMDLINE="quiet" and we don't want that
#set -- "$@" --essential-hook='{ echo LINUX_KERNEL_CMDLINE=\"\"; echo LINUX_KERNEL_CMDLINE_DEFAULTS=\"\"; } > "$1"/etc/default/flash-kernel' #
# select timezone and locales # select timezone and locales
# FIXME: this should be done by a firstboot script # FIXME: this should be done by a firstboot script
set -- "$@" \ set -- "$@" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment