-
Notifications
You must be signed in to change notification settings - Fork 17
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
Changes to be able to build and deploy lomiri-system-settings #82
base: master
Are you sure you want to change the base?
Conversation
1. fixing error `--force-yes is deprecated, use one of the options starting with --allow instead` 2. when building lomiri-system-settings and deploing locally, apt is ignoring the local version (e.g. 1.0.2+1local~1725113893) and wanting the repository version (e.g. 1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac) this change is forcing the local version https://forums.ubports.com/topic/9536/error-while-installing-lomiri-systems-settings
resolves issue dpkg: error processing archive /tmp/repo//lomiri-system-settings_1.0.2+1local~1725131539_arm64.deb (--unpack): unable to create '/usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh.dpkg-new' (while processing './usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh'): Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of '/usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh': Read-only file system
result after this patch
|
@@ -886,8 +886,9 @@ deploy_deb () { | |||
fi; | |||
|
|||
device exec "SUDO_ASKPASS=/tmp/askpass.sh sudo -A sed -i '/Pin-Priority/c\Pin-Priority: 50' /etc/apt/preferences.d/extra-ppas.pref" | |||
device exec SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get update -o Dir::Etc::sourcelist="/tmp/repo/sources.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | |||
device exec SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get dist-upgrade -o Dir::Etc::sourcelist="/tmp/repo/all.list" --yes --force-yes | |||
device exec SUDO_ASKPASS=/tmp/askpass.sh sudo -A umount /usr/share/session-migration/scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well... the path(s) to unmount will vary from device to device and from package to package. Not every device will have /usr/share/session-migration/scripts
as a bind-mount. Hard-coding this here isn't particularly a good solution.
I don't have a good solution for this yet, so for now you'll have to manually run umount
command as it dpkg complains. We probably should document this somewhere though...
fixing warning
--force-yes is deprecated, use one of the options starting with --allow instead
when building lomiri-system-settings and deploing locally, apt is ignoring the local version (e.g. 1.0.2+1local~1725113893) and wanting the repository version (e.g. 1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac) this change is forcing the local version https://forums.ubports.com/topic/9536/error-while-installing-lomiri-systems-settings
fixed just with
-f
resolved umounting manually
sudo umount /usr/share/session-migration/scripts