Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1266 - sysupgrade-x86 should detect boot partition properly #6206

Open
openwrt-bot opened this issue Jan 11, 2018 · 0 comments
Open

FS#1266 - sysupgrade-x86 should detect boot partition properly #6206

openwrt-bot opened this issue Jan 11, 2018 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

pprindeville:

Currently it's hard-coded into /lib/preinit/79_move_config as:

move_config() { local partdev
. /lib/upgrade/common.sh

if export_bootdevice && export_partdevice partdev 1; then
	mkdir -p /boot
	if mount -t ext4 -o ro,noatime "/dev/$partdev" /boot; then
		if [ -f /boot/sysupgrade.tgz ]; then
			mount /boot -o remount,rw,noatime
			mv -f /boot/sysupgrade.tgz /
			mount /boot -o remount,ro,noatime
		fi
		mount --bind /boot/boot /boot
	fi
fi

}

that the first partition of the boot device is the boot partition. That's not always the case, and EFI seems to break this.

Also, it's an obstacle to supporting A/B image+config boot modes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant