livecd-creator: fix /dev in chroot
This commit is contained in:
parent
5553b98e2f
commit
ac5128e9b3
@ -1,3 +1,7 @@
|
|||||||
|
%if 0%{?qubes_builder}
|
||||||
|
%define _builddir %(pwd)/live
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: qubes-live
|
Name: qubes-live
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -16,7 +20,9 @@ Various fixes for Qubes Live edition
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
install -D -m 0755 -t /etc/rc.d/init.d/ \
|
|
||||||
|
install -d -m 0755 $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
||||||
|
install -m 0755 -t $RPM_BUILD_ROOT/etc/rc.d/init.d/ \
|
||||||
livesys \
|
livesys \
|
||||||
livesys-late
|
livesys-late
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
import stat
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import optparse
|
import optparse
|
||||||
@ -208,6 +209,14 @@ def main():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
creator.mount(options.base_on, options.cachedir)
|
creator.mount(options.base_on, options.cachedir)
|
||||||
|
|
||||||
|
# fix /dev
|
||||||
|
os.mknod(os.path.join(
|
||||||
|
creator._instroot, 'dev/loop-control'), 0666 | stat.S_IFBLK, os.makedev(10, 237))
|
||||||
|
for i in range(8):
|
||||||
|
os.mknod(os.path.join(creator._instroot, 'dev/loop{}'.format(i)),
|
||||||
|
0666 | stat.S_IFBLK, os.makedev(7, i))
|
||||||
|
|
||||||
creator.install()
|
creator.install()
|
||||||
creator.configure()
|
creator.configure()
|
||||||
if options.give_shell:
|
if options.give_shell:
|
||||||
|
Loading…
Reference in New Issue
Block a user