You are not logged in.
Pages: 1
I update kernel with this code I copied from the wiki and have used successfully for some time:
cd "${BUILDROOT}"/linux || die "cd ${BUILDROOT}/linux failed"
asp update linux 1>/dev/null || die "asp update failed"
asp -f export linux 1>/dev/null || die "asp -f export failed"today it fails with:
From https://github.com/archlinux/svntogit-packages
* branch packages/linux -> FETCH_HEAD
error: invalid option -- 'f'
[2020-08-04T21:07:07+0200] update-kernel: asp -f export failed
error: command failed to execute correctlyDid I miss some change?
Offline
Offline
Indeed, I saw that but why did it work last week? This commit is October 2019 - what did I miss?
The wiki still says to use "-f" here: https://wiki.archlinux.org/index.php/Ke … m#Updating
The up to date PKGBUILD, as well archlinux kernel configuration file, can be pulled in by the asp command:
$ cd ~/build/linux/
$ asp update linux
$ asp -f export linux
Should I (and the wiki) just drop the "-f" and delete something first? If I just drop and use asp export linux it I get this error:
:: Checking 'https://git.archlinux.org/linux.git/'
From https://github.com/archlinux/svntogit-packages
* branch packages/linux -> FETCH_HEAD
mkdir: cannot create directory ‘linux’: File existsLast edited by halasz (2020-08-04 20:12:48)
Offline
-f
Allow files to be overwritten.
(Obviously no more in recent versions)
You should in general not use options where you don't know what they do, but it now has to go from the wiki as well, yes. Feel free to update the entry.
Offline
Feel free to update the entry.
I don't know what to update in the wiki.
What exactly should be deleted before running asp export linux? The whole "linux" directory? Some of the contents?
EDIT: I've added this before asp and it seems to work OK but I'm not 100% sure it is the correct solution...
if [[ -d "${BUILDROOT}"/linux/linux ]]; then
rm -r "${BUILDROOT}"/linux/linux
fiLast edited by halasz (2020-08-04 20:40:03)
Offline
Pages: 1