File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ echo "console=ttyS0 gl.live=1 gl.ovl=/:tmpfs" > cmdline
27
27
touch tmp_initrd
28
28
[[ ! -e " $chroot_dir /initrd" ]]
29
29
touch " $chroot_dir /initrd"
30
- mount --bind tmp_initrd " $chroot_dir /initrd"
31
30
[[ ! -e " $chroot_dir /root.squashfs" ]]
32
31
touch " $chroot_dir /root.squashfs"
33
32
mount --bind root.squashfs " $chroot_dir /root.squashfs"
@@ -50,8 +49,7 @@ chroot "$chroot_dir" env dracut \
50
49
51
50
umount -l " $chroot_dir /proc"
52
51
53
- umount " $chroot_dir /initrd"
54
- rm " $chroot_dir /initrd"
52
+ mv " $chroot_dir /initrd" tmp_initrd
55
53
umount " $chroot_dir /root.squashfs"
56
54
rm " $chroot_dir /root.squashfs"
57
55
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ mount --bind "$erofs" "$rootfs/tmp/initrd.include/root.img"
52
52
initrd=" $( mktemp) "
53
53
54
54
touch " $rootfs /initrd"
55
- mount --bind " $initrd " " $rootfs /initrd"
56
-
57
55
kernel=" $( find " $rootfs /boot/" -name ' vmlinuz-*' | sort -V | tail -n 1) "
58
56
59
57
chroot " $rootfs " dracut \
@@ -74,7 +72,7 @@ umount -l "$rootfs/proc"
74
72
umount -R " $rootfs /dev"
75
73
umount " $rootfs /tmp"
76
74
77
- umount " $rootfs /initrd"
75
+ mv " $rootfs /initrd " " $ initrd"
78
76
79
77
case " $BUILDER_ARCH " in
80
78
amd64)
You can’t perform that action at this time.
0 commit comments