Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

debootstrap over an existing distro?

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

debootstrap over an existing distro?

#1 Post by dieselnutjob »

Hi

I have a Pine quartz64-a and I have been trying to install debian on it all day.
It currently has slarm64 on either an eMMC module or an sdcard. I have both.
If both are present them it boots sdcard.
I am trying to boot sdcard and mount the root file system of the eMMC and overwrite the slarm64 fs with debian.
The emmc has a separate /boot which I need to not be overwritten because it has the weird rockchip hacked about 4.19 kernel and uboot.
I started by downloading the debootstrap package from debian and manually unpacking it with "ar x" and copied the files into the slarm64 /usr folder
Then I run this command:-

Code: Select all

debootstrap --arch=arm64 --variant=buildd --no-check-gpg stable /mnt/mmcblk2p3 http://deb.debian.org/debian/
deboot strap downloads a bunch of file but just stops at the end and I don't know why. It doesn't seem to actually unpack anything.

Code: Select all

I: Validating libxxhash0 0.8.0-2
I: Validating liblzma5 5.2.5-2
I: Validating xz-utils 5.2.5-2
I: Validating zlib1g 1:1.2.11.dfsg-2
I: Chosen extractor for .deb packages: ar
I: Extracting libacl1...
The ar package is the one provided by slarm64

Does the partition have to be empty first or something?

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: debootstrap over an existing distro?

#2 Post by dieselnutjob »

I deleted everything in the partition and that seems to make it work. It's unpacking now.

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: debootstrap over an existing distro?

#3 Post by dieselnutjob »

On first boot it paniced.
I realised that there was no /sbin/init
so I booted from sdcard, chrooted to the mmc and installed systemd-sysv
Now I am up to here:-

Code: Select all

Welcome to Debian GNU/Linux bookworm/sid!

[  OK  ] Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/systemd-fsck.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Integrity Protected Volumes.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Local Verity Protected Volumes.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
         Mounting Kernel Debug File System...
         Mounting Kernel Trace File System...
         Starting Load Kernel Module configfs...
         Starting Load Kernel Module drm...
         Starting Load Kernel Module fuse...
         Starting File System Check on Root Device...
         Starting Journal Service...
         Starting Load Kernel Modules...
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Trace File System.
[  OK  ] Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module fuse.
         Mounting FUSE Control File System...
         Mounting Kernel Configuration File System...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Load Kernel Modules.
         Starting Apply Kernel Variables...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Started Journal Service.2.1% complete)
[  OK  ] Finished File System Check on Root Device.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Finished Remount Root and Kernel File Systems.
         Activating swap /swap...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting Create System Users...
[FAILED] Failed to activate swap /swap.
See 'systemctl status swap.swap' for details.
[DEPEND] Dependency failed for Swaps.
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
[ TIME ] Timed out waiting for device /dev/mmcblk2p2.
[DEPEND] Dependency failed for File…ystem Check on /dev/mmcblk2p2.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Timer Units.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Socket Units.
[  OK  ] Started Emergency Shell.
[  OK  ] Reached target Emergency Mode.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
         Starting Record Runlevel Change in UTMP...
[  OK  ] Finished Record Runlevel Change in UTMP.
[   92.999508] proc: unrecognized mount option "hidepid=invisible" or missing value
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Set.
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"
to boot into default mode.
Give root password for maintenance
(or press Control-D to continue):

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: debootstrap over an existing distro?

#4 Post by p.H »

Code: Select all

[FAILED] Failed to activate swap /swap.
[ TIME ] Timed out waiting for device /dev/mmcblk2p2.
[DEPEND] Dependency failed for Filesystem Check on /dev/mmcblk2p2.
[DEPEND] Dependency failed for /boot.
Check /etc/fstab. If it contains unstable device nodes, replace them with UUID or LABEL.

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: debootstrap over an existing distro?

#5 Post by dieselnutjob »

creating and mkswap a file at /swap helped.
I am trying to figure out why it doesn't want to mount /boot from /dev/mmcblk2p2

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: debootstrap over an existing distro?

#6 Post by dieselnutjob »

I changed fstab from /dev/mmcblkwhatever to UUID=
however
the error that I think is the problem is
[ 93.016439] proc: unrecognized mount option "hidepid=invisible" or missing value

dieselnutjob
Posts: 133
Joined: 2011-04-12 10:25

Re: debootstrap over an existing distro?

#7 Post by dieselnutjob »

For the time being I have used debootstrap to install debian stable and it seems to work quite well.

Post Reply