-
Notifications
You must be signed in to change notification settings - Fork 151
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
dkms mkdeb: post_install scripts are always non-executable #53
Comments
The error would be more helpful if it included the value of |
Almost a year later and this issue still exists. |
Yeap, having the same issue. Executable bit is just droped from the script file. |
Almost three years later and the issue is still there. |
Distribution specific packaging was severely broken for most distributions and has been dropped in the latest release. |
@scaronni can you tell us what we're supposed to be doing instead? |
For the record, it runs with me now on Also, make sure that when you update your original code/scripts, you manually delete the folder that was previously created on |
I think I know where the root cause of this issue is. Problem
install -d "$(SRC)"
cp -a $(NAME)-$(VERSION) $(SRC)
chmod 644 -R "$(SRC)/$(NAME)-$(VERSION)" This As mentioned in the manual,
But we can also define our own
WorkaroundI copied the template files to my module:
Then modified the #/usr/bin/make
SRC = $(DESTDIR)/usr/src
SHARE = $(DESTDIR)/usr/share/$(NAME)-dkms
all:
clean:
install:
#source tree
ifeq ("$(wildcard $(NAME)-$(VERSION))", "$(NAME)-$(VERSION)")
install -d "$(SRC)"
cp -a $(NAME)-$(VERSION) $(SRC)
#chmod 644 -R "$(SRC)/$(NAME)-$(VERSION)"
endif
#tarball, possibly with binaries
ifeq ("$(wildcard $(NAME)-$(VERSION).dkms.tar.gz)", "$(NAME)-$(VERSION).dkms.tar.gz")
install -d "$(SHARE)"
install -m 644 $(NAME)-$(VERSION).dkms.tar.gz "$(SHARE)"
endif
#postinst, only if we are supporting legacy mode
ifeq ("$(wildcard common.postinst)", "common.postinst")
install -d "$(SHARE)"
install -m 755 $(PREFIX)/usr/lib/dkms/common.postinst $(SHARE)/postinst
endif Basically only commented this line:
Since the
My
Doing these steps, Good thing about this workaround is that I don't need to touch Moving ForwardMy workaround may work for some other people as well, but I think the proper solution is to fix Let me know if you know where |
@farzadpanahi as mentioned above distro specifics have been dropped from dkms itself. It's possible that Debian and/or Ubuntu has a copy/variant of it, but for that you'll have to check with their gitlab instance |
…ages At the same time, we have included firmware in Debian packages ref: dell/dkms#53 (comment)
同時に Debian パッケージにファームウェアを含めるようにした ref: dell/dkms#53 (comment)
Every time I try to use a POST_INSTALL script, I get the following:
Warning: The post_install script is not executable.
This is because of this.
The text was updated successfully, but these errors were encountered: