Create directory in overlay when building ISO.
Git doesn't track empty directories, so there is no configs/install-iso/overlay/pacman.d/ directory when one clones the archiso project. This causes "make <IMAGENAME>" to fail when wget tries to fetch the mirrorlist. The fix is to make the directory just before calling wget. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
fd93e7c9bd
commit
bbc0f720c5
@ -32,6 +32,9 @@ net-iso: overlay $(BOOTLOADER)
|
|||||||
|
|
||||||
overlay: base-iso
|
overlay: base-iso
|
||||||
cp -r overlay $(WORKDIR)/
|
cp -r overlay $(WORKDIR)/
|
||||||
|
if [ ! -d $(WORKDIR)/overlay/etc/pacman.d ]; then \
|
||||||
|
mkdir -m755 $(WORKDIR)/overlay/etc/pacman.d; \
|
||||||
|
fi
|
||||||
wget -O $(WORKDIR)/overlay/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/$(ARCH)/all/
|
wget -O $(WORKDIR)/overlay/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/$(ARCH)/all/
|
||||||
sed -i "s/#Server/Server/g" "$(WORKDIR)/overlay/etc/pacman.d/mirrorlist"
|
sed -i "s/#Server/Server/g" "$(WORKDIR)/overlay/etc/pacman.d/mirrorlist"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user