qubes-prepare-vm-kernel: ensure proper permissions on initramfs
By default dracut set 600 mode. While it isn't a problem for starting a
VM (which is done as root), it is a problem for creating standalone VM,
which has it's own copy of kernel directory.
(cherry picked from commit 2f1c8ea459
)
This commit is contained in:
parent
ddcbe6fbc4
commit
b23ddddd3e
@ -56,6 +56,7 @@ function build_initramfs() {
|
|||||||
--conf /dev/null --confdir /var/empty \
|
--conf /dev/null --confdir /var/empty \
|
||||||
-d "xenblk xen-blkfront cdrom ext4 jbd2 crc16 dm_snapshot" \
|
-d "xenblk xen-blkfront cdrom ext4 jbd2 crc16 dm_snapshot" \
|
||||||
$output_file $kver
|
$output_file $kver
|
||||||
|
chmod 644 "$output_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user