diff options
author | Pasha <pasha@member.fsf.org> | 2024-02-29 19:43:10 +0000 |
---|---|---|
committer | Pasha <pasha@member.fsf.org> | 2024-02-29 19:43:10 +0000 |
commit | a6af7a0fa4bfe6b34bdac74546af69b335ea4953 (patch) | |
tree | 049ffa5c48e0546bab0928ac766770e0c7b386e0 /create-initrd.sh | |
parent | 84d199451cf33734003c00c043a1480920f5563b (diff) | |
download | cross-hurd-master.tar.gz cross-hurd-master.tar.bz2 |
Diffstat (limited to 'create-initrd.sh')
-rw-r--r-- | create-initrd.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/create-initrd.sh b/create-initrd.sh index 40bc2a9..b39d27e 100644 --- a/create-initrd.sh +++ b/create-initrd.sh @@ -12,7 +12,7 @@ LOOPPART="${LOOP}p1" IMG_SIZE=2048MB BASE_SYS_ROOT=$(basename $SYS_ROOT) INITRD_FILE=initrd.ext2 -INITRD_SIZE=100MB +INITRD_SIZE=250MB DISK_SIZE=2048MB IMG=hd.img @@ -76,7 +76,12 @@ fill_disk () { mkdir -p output-disk/{sbin,boot,tools,lib} && mkdir -p output-disk/boot/grub && cp $src/hurd/ext2fs.static output-disk/sbin && - cp $src/lib/ld-x86-64.so.1 output-disk/lib/ld.so.1 && + (if [ -f mount/lib/ld-x86-64.so.1 ]; then + cp $src/lib/ld-x86-64.so.1 output-disk/lib/ld.so.1 + else + cp $src/lib/ld.so.1 output-disk/lib/ld.so.1 + fi) && + ln -sfv /lib/ld.so.1 output-disk/lib/ld.so && mv $INITRD_FILE output-disk/boot && cp $SYSTEM/boot/gnumach output-disk/boot && cp files/boot/grub.initrd.cfg output-disk/boot/grub/grub.cfg && |