Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1281 Post by johnywhy »

fredx181 wrote:*** mklive-devuan for testing ***
Attached mklive-devuan script (remove fake .gz)
awesome stuff, Fred!

this one is giving me some errors, running in xtahr.

Code: Select all

dpkg: can't open '/var/lib/dpkg/status': No such file or directory
---
mount: mount point chroot/proc does not exist
mount: mount point chroot/dev does not exist
mount: mount point chroot/sys does not exist
mount: mount point chroot/dev/pts does not exist
chroot: can't execute '/bin/bash': No such file or directory
Unmounting mount binds in chroot
umount: can't forcibly umount chroot/proc: No such file or directory
umount: can't forcibly umount chroot/dev/pts: No such file or directory
umount: can't forcibly umount chroot/dev: No such file or directory
umount: can't forcibly umount chroot/sys: No such file or directory
Start extracting and creating new 'live' initrd files...
mv: cannot stat ‘chroot/boot/initrd.img-*’: No such file or directory
FAILED
gzip: initrd.img.gz: No such file or directory
cpio: premature end of archive
Creating initrd.img, please wait...
OK
Copy kernel modules, contents of lib/modules, from extracted 'live-boot' initrd
 to extracted 'porteus-boot' initrd skeleton, initrdport/lib/modules/ ...
cp: cannot stat ‘initrdlive/lib/modules/*’: No such file or directory
FAILED

Start extracting and creating new 'live' initrd files...
mv: cannot stat ‘chroot/boot/initrd.img-*’: No such file or directory
FAILED
gzip: initrd.img.gz: No such file or directory
cpio: premature end of archive
Creating initrd.img, please wait...
OK
Copy kernel modules, contents of lib/modules, from extracted 'live-boot' initrd
 to extracted 'porteus-boot' initrd skeleton, initrdport/lib/modules/ ...
cp: cannot stat ‘initrdlive/lib/modules/*’: No such file or directory
FAILED
Creating initrd1.xz, please wait...
OK
Copy initrd.img, initrd1.xz to isodata/live...
OK
Move vmlinuz, from chroot/boot/, to isodata/live/vmlinuz1 ...
mv: cannot stat ‘chroot/boot/vmlinuz-*’: No such file or directory
FAILED
mv: cannot stat ‘chroot/var/cache/apt/archives/*.deb’: No such file or directory
cheers!
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

mklive-stretch -gui without kernel

#1282 Post by zagreb999 »

regards

is it possible
to make
mklive-stretch -gui without kernel

on my 3 laptops kernel 4.9 does not load

if i change kernel, xfce panel can not work
as it should... and other things are damaged...

there are conflits in kernels...

thanks

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1283 Post by johnywhy »

fredx181 wrote:ISO Minimal JWM 32-bit, third of the Desktop variants, size: 222MB, main .squashfs is gzip compressed:
https://dl.dropboxusercontent.com/s/01r ... 6.iso?dl=1
Amazing offerings, Fred.

i successfully installed this iso to an ext4 SD card, using this frugal install tool:
http://murga-linux.com/puppy/viewtopic. ... 674#979674

Then installed grub4dos to the SD card, with grub4dos config too. Successfully booted into it.

Then, created a save file, and rebooted.

I noticed at start of boot, after grub, got "setting (hd0,0) as root" message, which doesn't make sense. This is an SD card.

Got as far as "intramfs" message, then 'couldn't find .sig' file. Then got errors re bad cheat codes, bad 'from' code. The boot params (from, changes) are long codes like rather than simple drives or partitions. I tried editing boot parameters to /devuan/live, but still rejected.

Where did i go wrong?

Ideally, i'd like a full-partition install on the SD card, instead of frugal.

Is that possible/recommended?

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1284 Post by johnywhy »

Thx for all this great stuff, rcrsn51.
rcrsn51 wrote:Here is a stand-alone script for doing frugal installs of Stretch-Live ISOs.
...
This tool can also install onto USB devices.
...
3. Copy the stretch-live-frugal-install script onto partition sda1. Copy over some ISOs.
So, we are booting the OS's from iso's?
...install Grub4Dos to drive sda.
very scary. Why sda? My usb drive is sdb, sdc, or sdd.
5. For each ISO:
a. make a matching folder on sda2.
Ok, but we don't put the ISO's into those folders, correct? Else the installer will compain the folders aren't empty, right?
b. Do a Basic install or Puppy install. In each case, the target partition is /dev/sda2.
scary! i sda is my hard-disk. So, your script thinks of the usb drive as 'sda'?

c. Copy/paste the GRUB menu entry into your menu.lst file on sda1.
i'm seeing long strings of ID's, instead of drive or partition names. Is that correct?

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1285 Post by fredx181 »

johnywhy wrote:fredx181 wrote:
*** mklive-devuan for testing ***
Attached mklive-devuan script (remove fake .gz)

awesome stuff, Fred!

this one is giving me some errors, running in xtahr.
Not so awesome if you get those errors :lol:

It's because debootstrap needs to be installed first on Puppy, for mklive-stretch there's a .pet from wiak (see first post) but not for mklive-devuan.
I'd advice to run it from a Debian based OS (e.g.from one of your Stretch frugal installs), dependencies will be automatically installed.
But it's possible when you first install this debootstrap package before running mklive-devuan in x-tahr:
https://packages.devuan.org/devuan/pool ... n2_all.deb
Also for creating ISO is required: xorriso and isotools
Then installed grub4dos to the SD card, with grub4dos config too. Successfully booted into it.

Then, created a save file, and rebooted.
So first time boot worked and second time after creating savefile not ? Weird...
Where did i go wrong?
Can only be found if you provide more details, e.g. your menu.lst entry
Ideally, i'd like a full-partition install on the SD card, instead of frugal.

Is that possible/recommended?
Yes, from an existing Stretch or Devuan install, install "debdoginstallscripts" (if not installed already)
Then: Menu > System > DDog-Full-installer. EDIT: There's frugal installer also, named DDog-Installer)
But note: Full-Installer has a limitation/bug, It only works for the "main" 01-filesystem.squashfs, if there's any other .squashfs in the ISO that you select for the full install, it will not be part of it, so then the full install will not be complete (or works not as intended).

Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1286 Post by johnywhy »

fredx181 wrote:But note: Full-Installer has a limitation/bug, It only works for the "main" 01-filesystem.squashfs, if there's any other .squashfs in the ISO that you select for the full install, it will not be part of it, so then the full install will not be complete (or works not as intended).
that's from the debdoginstallscripts? Do any of the DebDogs or DevuanDogs have other squashfs's?

does this issue only concern the initial install, and not squashfs's added to the OS later?

would one normally add more squashfs's to a Dog after install?

Btw, it seems this Stretch Dog script disables boot-level 3. It goes straight to the desktop. How to enable boot level 3?

oy, i'm getting a bit overwhelmed by all the gotchas, extra steps, alternate methods, etc etc. Wishing for a simpler way :D

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1287 Post by fredx181 »

johnywhy wrote:that's from the debdoginstallscripts? Do any of the DebDogs or DevuanDogs have other squashfs's?


Yes DDog-Full-installer is from debdoginstallscripts.
For example the XFCE you built a few days ago has extra "zz_xfce_config.squashfs"
The ISO's I usually share (at first post of thread) always have only 01-filesystem.squashfs.
But you can check it by mounting the ISO and look in the 'live' folder.
would one normally add more squashfs's to a Dog after install?
Some do, but you can also activate "on the fly" from e.g. thunar or pcmanfm right-click
Btw, it seems this Stretch Dog script disables boot-level 3
Which Stretch Dog script ? What's the problem ?

EDIT:
oy, i'm getting a bit overwhelmed by all the gotchas, extra steps, alternate methods, etc etc. Wishing for a simpler way

The fact that there are choices doesn't mean you have to try them all out or know everything about it :wink: .

Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1288 Post by johnywhy »

fredx181 wrote:The fact that there are choices doesn't mean you have to try them all out or know everything about it :wink: .Fred
i mean, seems like a torturous path to get to a working install, and haven't got there yet.
Frugal with persistence on a NTFS or EXT4 partition.
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1289 Post by fredx181 »

johnywhy wrote:
fredx181 wrote:The fact that there are choices doesn't mean you have to try them all out or know everything about it :wink: .Fred
i mean, seems like a torturous path to get to a working install, and haven't got there yet.
Frugal with persistence on a NTFS or EXT4 partition.
Ah, I see, you''ll probably get there with a little help, but you seem to distract yourself (and us) by switching to a different subject every time.

Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1290 Post by johnywhy »

fredx181 wrote:[seem to distract yourself (and us) by switching to a different subject every time.

Sorry! You guys have generously offered many options. When one fails for me, I report the issue here, and then I try the next.

I'm happy to focus on the right one for my need. I don't know which that is.
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

westwest
Posts: 72
Joined: Fri 10 Apr 2015, 04:32

wifi

#1291 Post by westwest »

Is the mklive script designed to work over wifi?
It cannot find the connection on either of my machines...

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

Re: wifi

#1292 Post by fredx181 »

westwest wrote:Is the mklive script designed to work over wifi?
It cannot find the connection on either of my machines...
Yes, should work with wifi, are you getting message "There is no network connection. Cannot continue.... " ? Or... ?
The command in script to check for connection is:

Code: Select all

busybox ping -c1 google.com
Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1293 Post by johnywhy »

Devuan mklive/isobooter Ascii Stretch Test Results

Hi

- I successfully generated a Devuan ascii iso with Fred's script. (wow, awesome Fred!)
- Successfully installed to SD card with isobooter. http://murga-linux.com/puppy/viewtopic. ... 028#964028
- On boot, i get the expected 4-option Debian grub menu (changes, always fresh, ram, no persistence).

That's where things start failing. Apparently, the grub options are not designed for booting from an iso file.

- The 'No persistence' grub-option is the only one that boots the OS as expected. All other grub options fail.

Option 1 Changes: grub can't find the .sgn file
Option 2 Always Fresh: grub can't find the .sgn file
Option 3 Ram gets almost to the desktop, then fails to load X. When i try to login, i see the following:

I noticed that Option 1 Changes seems to be pointing to the root directory. However, the stretch-isobooter instructions say to create my save-files on a separate partition.

I'm sure this is my own misunderstanding.

As an experiment, i did the following:

- extracted the live dir from the iso to the boot partition.
- deleted the iso
- created a new menu.lst in the boot partition:

Code: Select all

title Devuan Test
  kernel /live/vmlinuz1
  initrd /live/initrd1.xz
This worked-- it found the linux files and booted as far as the initramsf command.

But then, again, failed to find the .sgn file.

What did i do wrong?

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

stretch-live-frugal-install Test Results

#1294 Post by johnywhy »

Hi

i successfully created a Devuan iso with Fred's script.

i installed it to an SD card using stretch-live-frugal-install, following instructions to the letter. The partitions are ext3 and ext4.

http://murga-linux.com/puppy/viewtopic. ... ab4#979674

On boot, i get as far as intramfs command.
Then, grub failed to find the .sgn file.

I'm sure it's my mistake.
Any suggestions?

My OS EFI is disabled (i believe) cuz in BIOS, "Usb boot" is set to "legacy". I do not have Secure Boot enabled. Hibernation on my Windows is disabled.

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1295 Post by fredx181 »

Hi johny,

I'm sorry, no idea what went wrong for you, I don't know about isobooter, but your menu.lst entry should work (after copy live folder to partition) although it 's missing "root (hd0,0") and more, e.g.:

Code: Select all

title Devuan Test
  root (hd0,0)
  kernel /live/vmlinuz1 from=/ noauto 
  initrd /live/initrd1.xz
Make sure there's no other "live" folder on the root of other partition, it may conflict.

See here for more info about porteus boot options (it's for Jessie, but should be the same for Stretch):
https://github.com/DebianDog/Jessie/wiki/Porteus-boot

I see in your sig "StretchDog", did you manage to make that work, and how ?
Should be the same for Devuan.
Which 'Dog' or 'Stretch-live' you could make work, none ? or ... and how ?

EDIT: Just made Devuan install to SD card, two ext4 partitions, created folder "devuanchanges" on second partition for the changes, menu.lst entry:

Code: Select all

title Devuan Test
root (hd0,0)
  kernel /live/vmlinuz1 from=/ noauto changes=EXIT:/devuanchanges
  initrd /live/initrd1.xz
Works ok ("live" folder is on first partition)


Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1296 Post by johnywhy »

fredx181 wrote:Make sure there's no other "live" folder on the root of other partition, it may conflict.
there are none
I see in your sig "StretchDog", did you manage to make that work, and how ?
Stretch+systemd installed to HD, not SD. Ok with both your provided iso, and my iso generated with your script. And, I just installed my Devuan iso to HD, same setup as the Stretch iso. Writing to you now from Devuan. (all are booting from live folder, not from iso)

My difficulty is installing a persistant Devuan to SD.

I tried duplicating my good HD install to SD. I used stretch-live-frugal-install to create a menu.lst on the SD. Then copied my grub entry from my HD grub to the SD menu.lst, and on boot grub dropped me to a command prompt.

Then i used stretch-live-frugal-install to convert the menu.lst to grub2. Again, on boot grub dropped me to a command prompt.
Just made Devuan install to SD card, two ext4 partitions, created folder "devuanchanges" on second partition for the changes, menu.lst entry:

Code: Select all

title Devuan Test
root (hd0,0)
  kernel /live/vmlinuz1 from=/ noauto changes=EXIT:/devuanchanges
  initrd /live/initrd1.xz
Works ok
Did you just copy the live folder from the iso to the SD boot partition?

You mentioned your changes.dat is on your second partition, but your grub changes option seems to point to first partition.

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1297 Post by fredx181 »

Ah, so the problem is only with SD card, I wish I could reproduce, but I can't, works ok for me.
Quote:
Just made Devuan install to SD card, two ext4 partitions, created folder "devuanchanges" on second partition for the changes, menu.lst entry:
Code:
title Devuan Test
root (hd0,0)
kernel /live/vmlinuz1 from=/ noauto changes=EXIT:/devuanchanges
initrd /live/initrd1.xz


Works ok


Did you just copy the live folder from the iso to the SD boot partition?

You mentioned your changes.dat is on your second partition, but your grub changes option seems to point to first partition.
Yes, copied "live' from ISO to first (boot) partition.
The changes point to "devuanchanges" folder which I have created on second partition of SD card, which is unique name that I don't have on root of any other partition, can be anything e.g. "mychanges_on_second_partition" as long as it's corresponding with menu.lst, e.g.

Code: Select all

 changes=EXIT:/mychanges_on_second_partition
It will be found by searching at boot on all patritions, if it has unique name

EDIT:
fredx181 wrote:Ah, so the problem is only with SD card, I wish I could reproduce, but I can't, works ok for me.
Also problem booting from USB , I guess?

Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

Devuan First Impressions

#1298 Post by johnywhy »

Hi Fred

Since i can boot to HD, i'll leave aside the SD issue for now.

Devuan errors

- ran synaptic-pkexec (that's the synaptic command in whisker menu)
- getting:

Code: Select all

# synaptic-pkexec
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct
Similar problem for gparted-pkexec.

It might help if i can login to puppy desktop, but the booter seems to override boot level 3. Which i really want to do anyway, so i can login as puppy or other non-root user. How to boot to level 3?

Update: solved the pkexec issue with

Code: Select all

/usr/lib/policykit-1/polkitd &
https://bugs.launchpad.net/ubuntu/+sour ... comments/1
is that an acceptable long-term solution for DevuanDog?

tho' i see /root/.config/autostart/Start polkit.desktop. Should that have started? If so, it seems that it failed to start.

Or, why not just leaf off the -pkexec, and run without polkit??? :D
And why not turn off dbus too?
https://forums.freebsd.org/threads/xfce ... ost-308436


Chromium error:
- installed chromium from synaptic
- on launch, getting

Code: Select all

# chromium 
[4801:4801:0911/114606.094772:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Update: i solved the chromium issue with the --no-sandbox switch. Chromium runs, but says "You are using an unsupported command-line flag --no-sandbox. Stability and security will suffer."

I'd still like to boot to puppy desktop :)


Save-file
changes=EXIT:/mychanges_on_second_partition
It will be found by searching at boot on all patritions, if it has unique name
any way to restrict it to the current partition, or preferably the current folder? I don't like the limitation of having to worry about duplicate names on some other partition.

THX
Last edited by johnywhy on Wed 12 Sep 2018, 01:47, edited 3 times in total.
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#1299 Post by rcrsn51 »

@johnywhy: The instructions for the stretch-live-frugal-install tool refer to an alternate initrd1.xz file that is required with some systems on USB/SD installs.

Have you tried it yet?

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1300 Post by johnywhy »

rcrsn51 wrote:@johnywhy: The instructions for the stretch-live-frugal-install tool refer to an alternate initrd1.xz file that is required with some systems on USB/SD installs. Have you tried it yet?
i think so. i used stretch-live-frugal-install to install a Devuan iso to an SD card, per these instructions.
http://murga-linux.com/puppy/viewtopic. ... ab4#979674

I see initrd1.xz, initrd.img, and vmlinuz1, in my iso, created by this script
http://murga-linux.com/puppy/viewtopic. ... 908#996908

The SD wouldn't boot. My results are here
http://murga-linux.com/puppy/viewtopic. ... 47#1004347

i suspect some UEFI issues, even tho' my BIOS is set to "USB Boot: Legacy".

The same iso boots fine, if i extract to a frugal folder on my HD.


THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

Post Reply