Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debootstrap setup #331

Merged
merged 4 commits into from Feb 13, 2017
Merged

Debootstrap setup #331

merged 4 commits into from Feb 13, 2017

Conversation

sjoerd-ccu
Copy link
Contributor

Based on testing a large set of package it seems the debootstrap build root wasn't completely setup, this resolves some issues that were seen.

@sjoerd-ccu sjoerd-ccu force-pushed the debootstrap-setup branch 2 times, most recently from 65cd0b6 to 9fd8e4c Compare January 31, 2017 09:28
a debootstrap won't necesserily create /etc/hosts, so copy it from the
main buildroot if it's not there.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
For the debootstrap recipe the virtual filesystems also should be
mounted in the actual build root not just the main one.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
# move topdir over
mv "$BUILD_ROOT/$TOPDIR" "$BUILD_ROOT/$myroot/${TOPDIR%/*}"

# do the build
dsc_build "$BUILD_ROOT/$myroot"

umount -n $BUILD_ROOT/$myroot/proc
umount -n $BUILD_ROOT/$myroot/dev/pts
umount -n $BUILD_ROOT/dev/$myroot/shm
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops, typo'd the path. will fix in a newxt push

Some builds trigger binfmt_misc to be mounted. Make sure that gets
cleaned up.
Debootstrap in all recent debian based distribution makes /dev/ptmx a
symlink to /dev/pts/ptmx. Adjust the ptmxmode mount option to give the
latter usable permissions and enable private instance usage (available
in linux since 2.6.29).
@mlschroe mlschroe merged commit 298f2e5 into openSUSE:master Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants