pxe: rsync to copy squashfs
This commit is contained in:
parent
9e96ae52d0
commit
a70179223a
|
@ -10,7 +10,7 @@ set -x
|
||||||
|
|
||||||
install_dependencies() {
|
install_dependencies() {
|
||||||
apt update
|
apt update
|
||||||
apt install -y wget dnsmasq nfs-kernel-server
|
apt install -y wget dnsmasq nfs-kernel-server rsync
|
||||||
}
|
}
|
||||||
|
|
||||||
backup_file() {
|
backup_file() {
|
||||||
|
@ -56,7 +56,7 @@ END
|
||||||
extract_live_parts_for_tftp() {
|
extract_live_parts_for_tftp() {
|
||||||
cp -fv "${PXE_DIR}/../iso/staging/live/vmlinuz" "${tftp_path}/"
|
cp -fv "${PXE_DIR}/../iso/staging/live/vmlinuz" "${tftp_path}/"
|
||||||
cp -fv "${PXE_DIR}/../iso/staging/live/initrd" "${tftp_path}/"
|
cp -fv "${PXE_DIR}/../iso/staging/live/initrd" "${tftp_path}/"
|
||||||
ln -sfv "${nfs_path}/live/" "${PXE_DIR}/../iso/staging/live/filesystem.squashfs"
|
rsync -av "${PXE_DIR}/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_netboot() {
|
install_netboot() {
|
||||||
|
|
Loading…
Reference in New Issue