[archiso] /lib/initcpio -> /usr/lib/initcpio
Needs mkinitpcio >= 0.8.4 Next changes will be for mdadm and mkinitcpio-nfs-utils: * /lib/initcpio/udev/11-dm-initramfs.rules * /lib/initcpio/ipconfig , /lib/initcpio/nfsmount Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
4f79083856
commit
1f66a737de
@ -10,23 +10,23 @@ install-program:
|
||||
|
||||
install-hooks:
|
||||
# hooks/install are needed by mkinitcpio
|
||||
install -D -m 644 hooks/archiso $(DESTDIR)/lib/initcpio/hooks/archiso
|
||||
install -D -m 644 install/archiso $(DESTDIR)/lib/initcpio/install/archiso
|
||||
install -D -m 755 archiso_shutdown $(DESTDIR)/lib/initcpio/archiso_shutdown
|
||||
install -D -m 644 hooks/archiso_shutdown $(DESTDIR)/lib/initcpio/hooks/archiso_shutdown
|
||||
install -D -m 644 install/archiso_shutdown $(DESTDIR)/lib/initcpio/install/archiso_shutdown
|
||||
install -D -m 644 archiso_pxe_nbd $(DESTDIR)/lib/initcpio/archiso_pxe_nbd
|
||||
install -D -m 644 hooks/archiso_pxe_common $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_common
|
||||
install -D -m 644 install/archiso_pxe_common $(DESTDIR)/lib/initcpio/install/archiso_pxe_common
|
||||
install -D -m 644 hooks/archiso_pxe_nbd $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nbd
|
||||
install -D -m 644 install/archiso_pxe_nbd $(DESTDIR)/lib/initcpio/install/archiso_pxe_nbd
|
||||
install -D -m 644 hooks/archiso_pxe_http $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_http
|
||||
install -D -m 644 install/archiso_pxe_http $(DESTDIR)/lib/initcpio/install/archiso_pxe_http
|
||||
install -D -m 644 hooks/archiso_pxe_nfs $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nfs
|
||||
install -D -m 644 install/archiso_pxe_nfs $(DESTDIR)/lib/initcpio/install/archiso_pxe_nfs
|
||||
install -D -m 644 hooks/archiso_loop_mnt $(DESTDIR)/lib/initcpio/hooks/archiso_loop_mnt
|
||||
install -D -m 644 install/archiso_loop_mnt $(DESTDIR)/lib/initcpio/install/archiso_loop_mnt
|
||||
install -D -m 644 install/archiso_kms $(DESTDIR)/lib/initcpio/install/archiso_kms
|
||||
install -D -m 644 hooks/archiso $(DESTDIR)/usr/lib/initcpio/hooks/archiso
|
||||
install -D -m 644 install/archiso $(DESTDIR)/usr/lib/initcpio/install/archiso
|
||||
install -D -m 755 archiso_shutdown $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
|
||||
install -D -m 644 hooks/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
|
||||
install -D -m 644 install/archiso_shutdown $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
|
||||
install -D -m 644 archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
|
||||
install -D -m 644 hooks/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
|
||||
install -D -m 644 install/archiso_pxe_common $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
|
||||
install -D -m 644 hooks/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
|
||||
install -D -m 644 install/archiso_pxe_nbd $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
|
||||
install -D -m 644 hooks/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
|
||||
install -D -m 644 install/archiso_pxe_http $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
|
||||
install -D -m 644 hooks/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
|
||||
install -D -m 644 install/archiso_pxe_nfs $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
|
||||
install -D -m 644 hooks/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
|
||||
install -D -m 644 install/archiso_loop_mnt $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
|
||||
install -D -m 644 install/archiso_kms $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
|
||||
|
||||
install-examples:
|
||||
# install examples
|
||||
@ -40,23 +40,23 @@ install-doc:
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)/usr/sbin/mkarchiso
|
||||
rm -f $(DESTDIR)/usr/bin/testiso
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso
|
||||
rm -f $(DESTDIR)/lib/initcpio/archiso_shutdown
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_shutdown
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_shutdown
|
||||
rm -f $(DESTDIR)/lib/initcpio/archiso_pxe_nbd
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_common
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_common
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nbd
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_nbd
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_http
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_http
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nfs
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_nfs
|
||||
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_loop_mnt
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_loop_mnt
|
||||
rm -f $(DESTDIR)/lib/initcpio/install/archiso_kms
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/archiso_shutdown
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_shutdown
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_shutdown
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/archiso_pxe_nbd
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_common
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_common
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nbd
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nbd
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_http
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_http
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_pxe_nfs
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_pxe_nfs
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/hooks/archiso_loop_mnt
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_loop_mnt
|
||||
rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms
|
||||
rm -rf $(DESTDIR)/usr/share/archiso/
|
||||
|
||||
.PHONY: install install-program install-hooks install-examples install-doc uninstall
|
||||
|
@ -6,7 +6,7 @@ build() {
|
||||
|
||||
add_binary nbd-client
|
||||
|
||||
add_file /lib/initcpio/archiso_pxe_nbd /archiso_pxe_nbd
|
||||
add_file /usr/lib/initcpio/archiso_pxe_nbd /archiso_pxe_nbd
|
||||
}
|
||||
|
||||
help() {
|
||||
|
@ -3,7 +3,7 @@
|
||||
build() {
|
||||
SCRIPT="archiso_shutdown"
|
||||
|
||||
add_file /lib/initcpio/archiso_shutdown /shutdown
|
||||
add_file /usr/lib/initcpio/archiso_shutdown /shutdown
|
||||
}
|
||||
|
||||
help() {
|
||||
|
@ -22,8 +22,8 @@ make_basefs() {
|
||||
# Copy mkinitcpio archiso hooks (root-image)
|
||||
make_setup_mkinitcpio() {
|
||||
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
|
||||
cp /lib/initcpio/hooks/archiso ${work_dir}/root-image/lib/initcpio/hooks
|
||||
cp /lib/initcpio/install/archiso ${work_dir}/root-image/lib/initcpio/install
|
||||
cp /usr/lib/initcpio/hooks/archiso ${work_dir}/root-image/usr/lib/initcpio/hooks
|
||||
cp /usr/lib/initcpio/install/archiso ${work_dir}/root-image/usr/lib/initcpio/install
|
||||
cp ${script_path}/mkinitcpio.conf ${work_dir}/root-image/etc/mkinitcpio-archiso.conf
|
||||
: > ${work_dir}/build.${FUNCNAME}
|
||||
fi
|
||||
|
@ -29,12 +29,12 @@ make_setup_mkinitcpio() {
|
||||
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
|
||||
local _hook
|
||||
for _hook in archiso archiso_shutdown archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_loop_mnt; do
|
||||
cp /lib/initcpio/hooks/${_hook} ${work_dir}/root-image/lib/initcpio/hooks
|
||||
cp /lib/initcpio/install/${_hook} ${work_dir}/root-image/lib/initcpio/install
|
||||
cp /usr/lib/initcpio/hooks/${_hook} ${work_dir}/root-image/usr/lib/initcpio/hooks
|
||||
cp /usr/lib/initcpio/install/${_hook} ${work_dir}/root-image/usr/lib/initcpio/install
|
||||
done
|
||||
cp /lib/initcpio/install/archiso_kms ${work_dir}/root-image/lib/initcpio/install
|
||||
cp /lib/initcpio/archiso_shutdown ${work_dir}/root-image/lib/initcpio
|
||||
cp /lib/initcpio/archiso_pxe_nbd ${work_dir}/root-image/lib/initcpio
|
||||
cp /usr/lib/initcpio/install/archiso_kms ${work_dir}/root-image/usr/lib/initcpio/install
|
||||
cp /usr/lib/initcpio/archiso_shutdown ${work_dir}/root-image/usr/lib/initcpio
|
||||
cp /usr/lib/initcpio/archiso_pxe_nbd ${work_dir}/root-image/usr/lib/initcpio
|
||||
cp ${script_path}/mkinitcpio.conf ${work_dir}/root-image/etc/mkinitcpio-archiso.conf
|
||||
: > ${work_dir}/build.${FUNCNAME}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user