Move 'custom/liveboot' to 'custom/templates/liveboot'

Change-Id: I038c6924222c83f7297cb055588938afeca9ff84
This commit is contained in:
Dongjin Kim
2021-03-09 12:26:15 +09:00
parent b446a663f2
commit 1bc9905ce6
3 changed files with 5 additions and 5 deletions

View File

@@ -6,4 +6,4 @@ TARGET_DEVICE=/srv/workspace/odroid-stamper/binary.img
DEFAULT_USER=odroid
DEFAULT_PASSWD=odroid
ALLOW_ROOT_LOGIN=false
LIVE_BOOT=true
LIVEBOOT=true

View File

@@ -3,7 +3,7 @@
echo flash-kernel flash-kernel/linux_cmdline string @@LINUX_KERNEL_CMDLINE@@ | \
debconf-set-selections
if [ "x@@LIVE_BOOT@@" = "xtrue" ]; then
if [ "x@@LIVEBOOT@@" = "xtrue" ]; then
cat>/usr/share/flash-kernel/preboot.d/upstream/99-liveboot<<__EOF
setenv bootargs "\${bootargs} boot=casper toram"
__EOF

View File

@@ -110,7 +110,7 @@ get_flavour_packages() {
[ -f custom/${CUSTOMOS}/packages ] &&
pkgs="${pkgs} $(get_packages custom/${CUSTOMOS}/packages)"
if [ "x${LIVE_BOOT}" = "xtrue" ]; then
if [ "x${LIVEBOOT}" = "xtrue" ]; then
pkgs="${pkgs} casper"
fi
@@ -319,7 +319,7 @@ do_preinstall() {
-e "s,@@DEFAULT_USER@@,$(default_user),g" \
-e "s,@@DEFAULT_USER_PASSWD@@,$(default_user_passwd),g" \
-e "s,@@DEFAULT_DISTRO@@,${DISTRO},g" \
-e "s,@@LIVE_BOOT@@,${LIVE_BOOT},g" \
-e "s,@@LIVEBOOT@@,${LIVEBOOT},g" \
${fixup}
done
@@ -421,7 +421,7 @@ do_create_image() {
do_postinstall
do_cleanup
do_unmount
if [ "x${LIVE_BOOT}" = "xtrue" ]; then
if [ "x${LIVEBOOT}" = "xtrue" ]; then
do_create_squashfs ${baseimage} 512
else
do_create_partition ${baseimage} 256