2008-09-07 03:39:35 +02:00
|
|
|
all:
|
|
|
|
|
2011-06-22 01:31:52 +02:00
|
|
|
install: install-program install-hooks install-examples install-doc
|
2011-06-18 23:38:58 +02:00
|
|
|
|
|
|
|
install-program:
|
2008-09-07 03:39:35 +02:00
|
|
|
# install to sbin since script only usable by root
|
2009-01-22 21:04:43 +01:00
|
|
|
install -D -m 755 mkarchiso $(DESTDIR)/usr/sbin/mkarchiso
|
2008-09-07 03:39:35 +02:00
|
|
|
# testiso can be used by anyone
|
2009-01-22 21:04:43 +01:00
|
|
|
install -D -m 755 testiso $(DESTDIR)/usr/bin/testiso
|
2011-06-22 01:31:52 +02:00
|
|
|
|
|
|
|
install-hooks:
|
2008-09-07 03:39:35 +02:00
|
|
|
# hooks/install are needed by mkinitcpio
|
2009-01-22 21:04:43 +01:00
|
|
|
install -D -m 644 hooks/archiso $(DESTDIR)/lib/initcpio/hooks/archiso
|
|
|
|
install -D -m 644 install/archiso $(DESTDIR)/lib/initcpio/install/archiso
|
2011-10-24 02:24:18 +02:00
|
|
|
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
|
2011-08-29 20:27:03 +02:00
|
|
|
install -D -m 644 archiso_pxe_nbd $(DESTDIR)/lib/initcpio/archiso_pxe_nbd
|
2011-11-28 16:28:03 +01:00
|
|
|
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
|
2010-03-18 03:23:13 +01:00
|
|
|
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
|
2011-11-28 16:28:03 +01:00
|
|
|
install -D -m 644 hooks/archiso_pxe_curl $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_curl
|
|
|
|
install -D -m 644 install/archiso_pxe_curl $(DESTDIR)/lib/initcpio/install/archiso_pxe_curl
|
[archiso] Add PXE NFS support
It add support for using *.sfs images via NFS.
It must be located after archiso_pxe_nbd in mkinitcpio.conf, in that way
NBD is the default.
New boot parameters:
archiso_nfs_srv=IP:/path
Set the NFS IP and path. Accepts ${pxeserver} as IP.
archiso_nfs_opt= Sets NFS mount opts (comma separated)
Defaults to:
port = as given by server portmap daemon
rsize = 1024
wsize = 1024
timeo = 7
retrans = 3
acregmin = 3
acregmax = 60
acdirmin = 30
acdirmax = 60
flags = hard, nointr, noposix, cto, ac
:: Running Hook [archiso_pxe_common]
IP-Config: eth0 hardware address 52:54:00:12:34:57 mtu 1500
IP-Config: eth0 guessed broadcast address 192.168.0.255
IP-Config: eth0 guessed nameserver address 192.168.0.218
IP-Config: eth0 complete (from 192.168.0.218):
address: 192.168.0.90 broadcast: 192.168.0.255 netmask: 255.255.255.0
gateway: 192.168.0.218 dns0 : 192.168.0.218 dns1 : 0.0.0.0
rootserver: 192.168.0.218 rootpath:
filename :
:: Running Hook [archiso_pxe_nbd]
:: Running Hook [archiso_pxe_curl]
:: Running Hook [archiso_pxe_nfs]
:: Mounting '192.168.0.77:/mnt/iso'
...
192.168.0.77:/mnt/iso/ on /run/archiso/bootmnt type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,nolock,proto=tcp,port=65535,timeo=7,retrans=3,sec=sys,local_lock=all,addr=192.168.0.77)
...
My /etc/exports
/mnt/iso 192.168.0.90(ro,no_subtree_check,no_root_squash)
2011-11-28 16:28:03 +01:00
|
|
|
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
|
2010-12-01 02:16:19 +01:00
|
|
|
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
|
2011-06-18 23:38:58 +02:00
|
|
|
|
|
|
|
install-examples:
|
|
|
|
# install examples
|
2010-03-21 20:42:04 +01:00
|
|
|
install -d -m 755 $(DESTDIR)/usr/share/archiso/
|
2011-08-14 06:57:23 +02:00
|
|
|
cp -r ../configs $(DESTDIR)/usr/share/archiso/
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2011-06-18 23:38:58 +02:00
|
|
|
install-doc:
|
|
|
|
install -d -m 755 $(DESTDIR)/usr/share/archiso/
|
|
|
|
install -D -m 644 ../README $(DESTDIR)/usr/share/doc/archiso/README
|
|
|
|
|
2008-09-07 03:39:35 +02:00
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)/usr/sbin/mkarchiso
|
|
|
|
rm -f $(DESTDIR)/usr/bin/testiso
|
2008-09-07 05:11:41 +02:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso
|
2011-10-24 02:24:18 +02:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/archiso_shutdown
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_shutdown
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_shutdown
|
2011-08-29 20:27:03 +02:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/archiso_pxe_nbd
|
2011-11-28 16:28:03 +01:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_common
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_common
|
2010-03-18 03:23:13 +01:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nbd
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_nbd
|
2011-11-28 16:28:03 +01:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_curl
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_curl
|
[archiso] Add PXE NFS support
It add support for using *.sfs images via NFS.
It must be located after archiso_pxe_nbd in mkinitcpio.conf, in that way
NBD is the default.
New boot parameters:
archiso_nfs_srv=IP:/path
Set the NFS IP and path. Accepts ${pxeserver} as IP.
archiso_nfs_opt= Sets NFS mount opts (comma separated)
Defaults to:
port = as given by server portmap daemon
rsize = 1024
wsize = 1024
timeo = 7
retrans = 3
acregmin = 3
acregmax = 60
acdirmin = 30
acdirmax = 60
flags = hard, nointr, noposix, cto, ac
:: Running Hook [archiso_pxe_common]
IP-Config: eth0 hardware address 52:54:00:12:34:57 mtu 1500
IP-Config: eth0 guessed broadcast address 192.168.0.255
IP-Config: eth0 guessed nameserver address 192.168.0.218
IP-Config: eth0 complete (from 192.168.0.218):
address: 192.168.0.90 broadcast: 192.168.0.255 netmask: 255.255.255.0
gateway: 192.168.0.218 dns0 : 192.168.0.218 dns1 : 0.0.0.0
rootserver: 192.168.0.218 rootpath:
filename :
:: Running Hook [archiso_pxe_nbd]
:: Running Hook [archiso_pxe_curl]
:: Running Hook [archiso_pxe_nfs]
:: Mounting '192.168.0.77:/mnt/iso'
...
192.168.0.77:/mnt/iso/ on /run/archiso/bootmnt type nfs (rw,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,nolock,proto=tcp,port=65535,timeo=7,retrans=3,sec=sys,local_lock=all,addr=192.168.0.77)
...
My /etc/exports
/mnt/iso 192.168.0.90(ro,no_subtree_check,no_root_squash)
2011-11-28 16:28:03 +01:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_pxe_nfs
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_pxe_nfs
|
2011-08-24 05:10:32 +02:00
|
|
|
rm -f $(DESTDIR)/lib/initcpio/hooks/archiso_loop_mnt
|
|
|
|
rm -f $(DESTDIR)/lib/initcpio/install/archiso_loop_mnt
|
2009-06-08 23:32:06 +02:00
|
|
|
rm -rf $(DESTDIR)/usr/share/archiso/
|
2011-06-18 23:38:58 +02:00
|
|
|
|
2011-06-22 01:31:52 +02:00
|
|
|
.PHONY: install install-program install-hooks install-examples install-doc uninstall
|