mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
appliance: Remove some unnecessary errors.
virt-rescue prints errors such as: rm: cannot remove `/proc': Is a directory mkdir: cannot create directory `/proc': File exists rm: cannot remove `/sys': Is a directory mkdir: cannot create directory `/sys': File exists People have reported these errors (which are nothing to worry about) as bugs in the past, so avoid them where possible.
This commit is contained in:
@@ -12,9 +12,11 @@ export RUNLEVEL PREVLEVEL
|
||||
|
||||
mkdir -p /sysroot
|
||||
|
||||
rm -f /proc; mkdir /proc
|
||||
if [ ! -d /proc ]; then rm -f /proc; fi
|
||||
mkdir -p /proc
|
||||
mount -t proc /proc /proc
|
||||
rm -f /sys; mkdir /sys
|
||||
if [ ! -d /sys ]; then rm -f /sys; fi
|
||||
mkdir -p /sys
|
||||
mount -t sysfs /sys /sys
|
||||
mkdir -p /run/lock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user