File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ echo "console=ttyS0 gl.live=1 gl.ovl=/:tmpfs" > cmdline
2727touch tmp_initrd
2828[[ ! -e " $chroot_dir /initrd" ]]
2929touch " $chroot_dir /initrd"
30- mount --bind tmp_initrd " $chroot_dir /initrd"
3130[[ ! -e " $chroot_dir /root.squashfs" ]]
3231touch " $chroot_dir /root.squashfs"
3332mount --bind root.squashfs " $chroot_dir /root.squashfs"
@@ -50,8 +49,7 @@ chroot "$chroot_dir" env dracut \
5049
5150umount -l " $chroot_dir /proc"
5251
53- umount " $chroot_dir /initrd"
54- rm " $chroot_dir /initrd"
52+ mv " $chroot_dir /initrd" tmp_initrd
5553umount " $chroot_dir /root.squashfs"
5654rm " $chroot_dir /root.squashfs"
5755
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ mount --bind "$erofs" "$rootfs/tmp/initrd.include/root.img"
5252initrd=" $( mktemp) "
5353
5454touch " $rootfs /initrd"
55- mount --bind " $initrd " " $rootfs /initrd"
56-
5755kernel=" $( find " $rootfs /boot/" -name ' vmlinuz-*' | sort -V | tail -n 1) "
5856
5957chroot " $rootfs " dracut \
@@ -74,7 +72,7 @@ umount -l "$rootfs/proc"
7472umount -R " $rootfs /dev"
7573umount " $rootfs /tmp"
7674
77- umount " $rootfs /initrd"
75+ mv " $rootfs /initrd " " $ initrd"
7876
7977case " $BUILDER_ARCH " in
8078 amd64)
You can’t perform that action at this time.
0 commit comments